From 78a8607e99a73ac5c2e7734f352f4e9b6a981b01 Mon Sep 17 00:00:00 2001 From: ThatGuy Date: Wed, 3 Jul 2019 13:36:46 +0000 Subject: [PATCH] Update installer.sh --- installer.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/installer.sh b/installer.sh index 4ae2ef6..7e98867 100644 --- a/installer.sh +++ b/installer.sh @@ -21,9 +21,9 @@ sudo sed -i 's/max_execution_time = 30/max_execution_time = 30000/' /etc/php/7.3 sudo sed -i 's/memory_limit = 128M/memory_limit = 1024M/' /etc/php/7.3/apache2/php.ini && \ sudo sed -i 's/post_max_size = 8M/post_max_size = 200M/' /etc/php/7.3/apache2/php.ini && \ sudo sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 200M/' /etc/php/7.3/apache2/php.ini && \ -sudo service apache2 restart && \ -sudo sed -i '/\[mysqld]/a innodb_file_per_table=1' /etc/mysql/mariadb.conf.d/50-server.cnf -service mysql restart +sudo systemctl restart apache2 && \ +sudo sed -i '/\[mysqld]/a innodb_file_per_table=1' /etc/mysql/mariadb.conf.d/50-server.cnf && \ +service mysql restart && \ mysql -uroot -e "SET GLOBAL innodb_file_format=Barracuda" && \ 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'" && \