diff --git a/nextcloud.sh b/nextcloud.sh index 855c2ed..ce2079f 100644 --- a/nextcloud.sh +++ b/nextcloud.sh @@ -109,6 +109,7 @@ unzip -q nextcloud-${VERSION}.zip if [[ ${NEW_INSTALLATION} == "false" ]]; then info "Unlink folders that contain the data" + cp ${FOLDER}/config/config.php ${FOLDER}/config.php unlink www/data unlink www/config unlink www/apps @@ -130,6 +131,7 @@ info "Copying new Nextcloud" cp -rf nextcloud/apps/* apps/ rm -rf nextcloud/{config,data,apps} cp -rf nextcloud/* www/ +cp -rf ${FOLDER}/config.php ${FOLDER}/config/config.php info "Link folders that contain the data into new installation" ln -s ${FOLDER}/data ${FOLDER}/www/