Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ncp-update-nc')
-rwxr-xr-xbin/ncp-update-nc8
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
####################