diff options
author | nachoparker <nacho@ownyourbits.com> | 2020-12-01 06:19:41 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2020-12-01 06:19:51 +0300 |
commit | 35c0d96d0b651b06c3ea57de64157abca7d835f2 (patch) | |
tree | db860f1e07f5b7b12363c3d0b8ee56d8cb74e33c /bin | |
parent | 7afdc0fe8dffd71785782c8c6ac4edf8f3ada42a (diff) |
nc-update-nc: ncp apps might not existv1.32.1
Signed-off-by: nachoparker <nacho@ownyourbits.com>
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 |