Update installer.sh
This commit is contained in:
parent
8a2d67d891
commit
d0e5d0a59a
@ -18,9 +18,4 @@ sudo sed -i 's/\/var\/www\//\/var\/www\/nextcloud\//' /etc/apache2/apache2.conf
|
||||
sudo sed -i '/<Directory \/var\/www\/nextcloud\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf && \
|
||||
sudo service apache2 restart && \
|
||||
mysql -uroot -e "CREATE DATABASE nextcloud CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci" && \
|
||||
mysql -uroot -e "GRANT ALL PRIVILEGES ON nextcloud.* TO nextcloud@localhost IDENTIFIED BY 'nextcloud'" && \
|
||||
sudo -u www-data php /var/www/nextcloud/occ config:system:set mysql.utf8mb4 --type boolean --value="true"
|
||||
sudo -u www-data php /var/www/nextcloud/occ maintenance:repair
|
||||
|
||||
|
||||
ip route get 8.8.8.8 | awk '{ print $NF; exit }'
|
||||
mysql -uroot -e "GRANT ALL PRIVILEGES ON nextcloud.* TO nextcloud@localhost IDENTIFIED BY 'nextcloud'"
|
Loading…
x
Reference in New Issue
Block a user