From c12e51b39677d44d2315ab12ec5f2d945179bbe0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Kn=C3=B6ppler?= <6317548+theCalcaholic@users.noreply.github.com> Date: Sat, 8 Nov 2025 14:56:55 +0100 Subject: [PATCH] update-nc.sh: Migrate NC apps after installation of new version --- bin/ncp-update-nc.d/update-nc.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/bin/ncp-update-nc.d/update-nc.sh b/bin/ncp-update-nc.d/update-nc.sh index 5f057c9d..d035907f 100755 --- a/bin/ncp-update-nc.d/update-nc.sh +++ b/bin/ncp-update-nc.d/update-nc.sh @@ -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