Skip to content

Commit

Permalink
Update nextcloud.conf when updating nextcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
MAGICCC committed Oct 27, 2023
1 parent f60c4f3 commit 7079000
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helper-scripts/nextcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ elif [[ ${NC_UPDATE} == "y" ]]; then
exit 1
else
docker exec -it -u www-data $(docker ps -f name=php-fpm-mailcow -q) bash -c "php /web/nextcloud/updater/updater.phar"
NC_SUBD=$(docker exec -i -u www-data $(docker ps -f name=php-fpm-mailcow -q) /web/nextcloud/occ config:system:get overwritehost)
mv ./data/conf/nginx/nextcloud.conf ./data/conf/nginx/nextcloud.conf-$(date +%s).bak
cp ./data/assets/nextcloud/nextcloud.conf ./data/conf/nginx/
sed -i "s/NC_SUBD/${NC_SUBD}/g" ./data/conf/nginx/nextcloud.conf
fi

elif [[ ${NC_INSTALL} == "y" ]]; then
Expand Down

0 comments on commit 7079000

Please sign in to comment.