diff options
author | nachoparker <nacho@ownyourbits.com> | 2018-10-04 06:16:15 +0300 |
---|---|---|
committer | nachoparker <nacho@ownyourbits.com> | 2018-10-04 07:25:19 +0300 |
commit | 0bf604593bdd0fcb6a64ca4e6a0b0321448b14b0 (patch) | |
tree | 74daac13321565af63ff1b29e90965174cfec9d6 /bin/ncp-update-nc | |
parent | aa886f9948310403c4cf6bfa2580b344cf96dce9 (diff) |
nc-update-nc: dont fix the news app if there is no news appv0.62.5
Diffstat (limited to 'bin/ncp-update-nc')
-rwxr-xr-x | bin/ncp-update-nc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc index dc4d759c..3193dc77 100755 --- a/bin/ncp-update-nc +++ b/bin/ncp-update-nc @@ -176,9 +176,11 @@ sudo -u www-data php nextcloud/occ upgrade # && false # test point sudo -u www-data php nextcloud/occ db:add-missing-indices # workaround for updating news to NC14 - bug https://github.com/nextcloud/news/issues/327 -F=/var/www/nextcloud/apps/news/vendor/ezyang/htmlpurifier/maintenance/.htaccess -[[ -f "$F" ]] || echo "Deny from all" > "$F" || true -sudo -u www-data php nextcloud/occ integrity:check-app --path=/var/www/nextcloud/apps/news news || true +[[ -e /var/www/nextcloud/apps/news ]] && { + F=/var/www/nextcloud/apps/news/vendor/ezyang/htmlpurifier/maintenance/.htaccess + [[ -f "$F" ]] || echo "Deny from all" > "$F" || true + sudo -u www-data php nextcloud/occ integrity:check-app --path=/var/www/nextcloud/apps/news news || true +} # done #################### |