diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/ncp-update-nc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index 25ed025d..fa86bbfc 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -134,7 +134,11 @@ cp -raT nextcloud-old/themes/ nextcloud/themes/ # copy old NCP apps #################### -cp -r nextcloud-old/apps/{nextcloudpi,previewgenerator} /var/www/nextcloud/apps/ +for app in nextcloudpi previewgenerator; do + if [[ -d nextcloud-old/apps/"${app}" ]]; then + cp -r nextcloud-old/apps/"${app}" /var/www/nextcloud/apps/ + fi +done #false # test point |