Skip to content

Commit 17aae56

Browse files
committed
ncp-update-nc: check for ncc commands before using them
Signed-off-by: nachoparker <nacho@ownyourbits.com>
1 parent 76ffaec commit 17aae56

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

bin/ncp-update-nc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,10 @@ find nextcloud/ -type f -exec chmod 640 {} \;
179179
# upgrade
180180
####################
181181
echo "Upgrade..."
182-
sudo -u www-data php nextcloud/occ upgrade # && false # test point
183-
sudo -u www-data php nextcloud/occ db:add-missing-indices
184-
sudo -u www-data php nextcloud/occ db:add-missing-columns
182+
ncc='sudo -u www-data php nextcloud/occ'
183+
$ncc upgrade # && false # test point
184+
$ncc db:add-missing-indices
185+
$ncc | grep -q db:add-missing-columns && $ncc db:add-missing-columns
185186

186187
# done
187188
####################

changelog.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11

2-
[v1.29.3](https://github.com/nextcloud/nextcloudpi/commit/e0370bb) (2020-08-26) nc-static-IP: Restricting gateway to one
2+
[v1.29.4](https://github.com/nextcloud/nextcloudpi/commit/0cb48d9) (2020-08-30) ncp-update-nc: check for ncc commands before using them
3+
4+
[v1.29.3 ](https://github.com/nextcloud/nextcloudpi/commit/76ffaec) (2020-08-26) nc-static-IP: Restricting gateway to one
35

46
[v1.29.0](https://github.com/nextcloud/nextcloudpi/commit/3cf269a) (2020-08-28) upgrade to NC19.0.2
57

0 commit comments

Comments
 (0)