Skip to content

Commit 5667056

Browse files
committed
update-nc.sh: Migrate NC apps after installation of new version
1 parent ea2862d commit 5667056

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

bin/ncp-update-nc.d/update-nc.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,12 @@ cp nextcloud-old/config/config.php nextcloud/config/
142142
####################
143143
cp -raT nextcloud-old/themes/ nextcloud/themes/
144144

145-
# copy old NCP apps
145+
# copy old NC apps
146146
####################
147-
for app in nextcloudpi previewgenerator notify_push; do
148-
if [[ -d nextcloud-old/apps/"${app}" ]]; then
149-
cp -r -L nextcloud-old/apps/"${app}" /var/www/nextcloud/apps/
147+
for app in nextcloud-old/apps/*; do
148+
if ! [[ -d /var/www/nextcloud/apps/"$(basename "$app")" ]]
149+
then
150+
cp -r -L "${app}" /var/www/nextcloud/apps/
150151
fi
151152
done
152153

0 commit comments

Comments
 (0)