Mise à jour de 'nextcloud.sh'

This commit is contained in:
Dryusdan 2020-02-24 10:35:24 +01:00
parent a808e84bc3
commit 491df56c4d
1 changed files with 2 additions and 0 deletions

View File

@ -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/