Commit 5f0af205 authored by Daniel's avatar Daniel

Update overlay/root/scripts/nc_config.sh, post_install.sh files

parent c15f82b0
......@@ -7,6 +7,7 @@ echo "nextcloud: setup php-fpm config"
# create a backup
cp ${file_php_fpm_nc_conf} "${file_php_fpm_nc_conf}.bkp"
change_config_value_by_vars ${file_php_fpm_nc_conf}
service php-fpm restart 1>/dev/null
echo "nextcloud: downloading and installing latest nextcloud package"
......@@ -17,10 +18,11 @@ rm -r $dir_nextcloud_data
rm -r $dir_nextcloud_sessions
#
# download latest release
wget -O ${file_nc_tmp_zip} https://download.nextcloud.com/server/releases/latest.zip
wget -nv -O ${file_nc_tmp_zip} https://download.nextcloud.com/server/releases/latest.zip
#
# unzip to www directory
unzip -d ${dir_www} ${file_nc_tmp_zip}
unzip -q -d ${dir_www} ${file_nc_tmp_zip} 1>/dev/null
#
# create sessions tmp dir outside nextcloud installation
mkdir -p ${dir_nextcloud_sessions}
......
......@@ -33,11 +33,12 @@ echo "main: Setting up redis..."
echo "main: starting redis"
service redis restart 1>/dev/null
echo "main: Setting up nginx..."
. /root/scripts/nginx_config.sh
echo "main: applying nextcloud tuning"
. /root/scripts/nc_tuning.sh
echo "main: Setting up nginx..."
. /root/scripts/nginx_config.sh
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment