From 7b99eb939fcfeece6700d680be29c01b4841f692 Mon Sep 17 00:00:00 2001 From: ThatGuy Date: Thu, 4 Jul 2019 02:55:46 +0000 Subject: [PATCH] Update installer.sh --- installer.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/installer.sh b/installer.sh index 7e98867..26d370f 100644 --- a/installer.sh +++ b/installer.sh @@ -8,7 +8,7 @@ sudo apt install lsb-release apt-transport-https ca-certificates -y && \ sudo wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && \ echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.3.list && \ sudo apt update && sudo apt upgrade -y && \ -sudo apt install apache2 apache2-utils mariadb-server mariadb-client php7.3 libapache2-mod-php7.3 php7.3-mysql php-common php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-readline php7.3-mysql php7.3-zip php7.3-gd php7.3-mbstring php7.3-curl php7.3-xml php7.3-bcmath php-intl php-imagick -y && \ +sudo apt install apache2 apache2-utils sqlite3 php7.3 libapache2-mod-php7.3 php-sqlite3 php-common php7.3-cli php7.3-common php7.3-json php7.3-opcache php7.3-readline php7.3-zip php7.3-gd php7.3-mbstring php7.3-curl php7.3-xml php7.3-bcmath php-intl php-imagick redis-server php7.3-redis -y && \ mkdir /var/www/nextcloud-data && \ wget https://download.nextcloud.com/server/releases/latest.tar.bz2 -O /var/www/nextcloud-latest.tar.bz2 && \ tar -xvjf /var/www/nextcloud-latest.tar.bz2 -C /var/www && \ @@ -21,10 +21,6 @@ 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 sed "/ 'installed' => true,/a \ 'memcache.local' => '\\\OC\\\Memcache\\\APCu',\n\ 'memcache.distributed' => '\\\OC\\\Memcache\\\Redis',\n\ 'memcache.locking' => '\\\OC\\\Memcache\\\Redis',\n\ 'redis' => [\n\ 'host' => '127.0.0.1',\n\ 'port' => 6379,\n\ ]," /var/www/nextcloud/config/config.php && \ 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'" && \ ip route get 8.8.8.8 | awk '{ print $NF; exit }' \ No newline at end of file