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-nc7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/ncp-update-nc b/bin/ncp-update-nc
index 1e88428f..ed557708 100755
--- a/bin/ncp-update-nc
+++ b/bin/ncp-update-nc
@@ -179,9 +179,10 @@ find nextcloud/ -type f -exec chmod 640 {} \;
# upgrade
####################
echo "Upgrade..."
-sudo -u www-data php nextcloud/occ upgrade # && false # test point
-sudo -u www-data php nextcloud/occ db:add-missing-indices
-sudo -u www-data php nextcloud/occ db:add-missing-columns
+ncc='sudo -u www-data php nextcloud/occ'
+$ncc upgrade # && false # test point
+$ncc db:add-missing-indices
+$ncc | grep -q db:add-missing-columns && $ncc db:add-missing-columns
# done
####################