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:
authornachoparker <nacho@ownyourbits.com>2020-08-30 23:12:18 +0300
committernachoparker <nacho@ownyourbits.com>2020-08-30 23:12:26 +0300
commit17aae5640cb50ae7047f7e6060d2f8d50b92ef20 (patch)
treef8098026a3d3ca1b15ad6e5012821df26335621a
parent76ffaec83ca72dd270b9e37d22fde1e2b17ddc25 (diff)
ncp-update-nc: check for ncc commands before using themv1.29.4
Signed-off-by: nachoparker <nacho@ownyourbits.com>
-rwxr-xr-xbin/ncp-update-nc7
-rw-r--r--changelog.md4
2 files changed, 7 insertions, 4 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
####################
diff --git a/changelog.md b/changelog.md
index 3820ce2b..735236ca 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,5 +1,7 @@
-[v1.29.3](https://github.com/nextcloud/nextcloudpi/commit/e0370bb) (2020-08-26) nc-static-IP: Restricting gateway to one
+[v1.29.4](https://github.com/nextcloud/nextcloudpi/commit/0cb48d9) (2020-08-30) ncp-update-nc: check for ncc commands before using them
+
+[v1.29.3 ](https://github.com/nextcloud/nextcloudpi/commit/76ffaec) (2020-08-26) nc-static-IP: Restricting gateway to one
[v1.29.0](https://github.com/nextcloud/nextcloudpi/commit/3cf269a) (2020-08-28) upgrade to NC19.0.2