diff --git a/src/freedombone-app-nextcloud b/src/freedombone-app-nextcloud index 356f3a2d..caf19daa 100755 --- a/src/freedombone-app-nextcloud +++ b/src/freedombone-app-nextcloud @@ -601,10 +601,17 @@ function install_nextcloud_main { ${PROJECT_NAME}-pass -u $MY_USERNAME -a nextcloud -p "$NEXTCLOUD_ADMIN_PASSWORD" cd /var/www/${NEXTCLOUD_DOMAIN_NAME}/htdocs - chown -R www-data:www-data config - chown -R www-data:www-data data + if [ -d config ]; then + chown -R www-data:www-data config + fi + if [ -d data ]; then + chown -R www-data:www-data data + fi + chmod +x occ ./occ maintenance:install --database-name nextcloud --admin-user ${MY_USERNAME} --admin-pass "${NEXTCLOUD_ADMIN_PASSWORD}" --database mysql --database-user root --database-pass "${MARIADB_PASSWORD}" + chown -R www-data:www-data config + chown -R www-data:www-data data ./occ check ./occ status ./occ app:list diff --git a/src/freedombone-utils-web b/src/freedombone-utils-web index 137ff9a4..57c9bc31 100755 --- a/src/freedombone-utils-web +++ b/src/freedombone-utils-web @@ -403,7 +403,7 @@ function letsencrypt_renewals { function configure_php { sed -i "s/memory_limit = 128M/memory_limit = ${MAX_PHP_MEMORY}M/g" /etc/php/7.0/fpm/php.ini sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.0/fpm/php.ini - sed -i "s/memory_limit = -1/memory_limit = ${MAX_PHP_MEMORY}M/g" /etc/php7.0/cli/php.ini + sed -i "s/memory_limit = -1/memory_limit = ${MAX_PHP_MEMORY}M/g" /etc/php/7.0/cli/php.ini sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 50M/g" /etc/php/7.0/fpm/php.ini sed -i "s/post_max_size = 8M/post_max_size = 50M/g" /etc/php/7.0/fpm/php.ini }