update-nc.sh: Migrate NC apps after installation of new version

This commit is contained in:
Tobias Knöppler 2025-11-08 14:56:55 +01:00
parent 767a42afbb
commit c12e51b396

View File

@ -142,11 +142,12 @@ cp nextcloud-old/config/config.php nextcloud/config/
####################
cp -raT nextcloud-old/themes/ nextcloud/themes/
# copy old NCP apps
# copy old NC apps
####################
for app in nextcloudpi previewgenerator notify_push; do
if [[ -d nextcloud-old/apps/"${app}" ]]; then
cp -r -L nextcloud-old/apps/"${app}" /var/www/nextcloud/apps/
for app in nextcloud-old/apps/*; do
if ! [[ -d /var/www/nextcloud/apps/"$(basename "$app")" ]]
then
cp -r -L "${app}" /var/www/nextcloud/apps/
fi
done