From 75f75732e7d97d9150b6422e1cffcd541c283eb2 Mon Sep 17 00:00:00 2001 From: Micke Nordin Date: Wed, 26 Apr 2023 11:22:25 +0200 Subject: [PATCH] Fix repair command --- templates/script/restart-nextcloud-farm.erb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/script/restart-nextcloud-farm.erb b/templates/script/restart-nextcloud-farm.erb index 622b2ca..f7832ce 100755 --- a/templates/script/restart-nextcloud-farm.erb +++ b/templates/script/restart-nextcloud-farm.erb @@ -69,10 +69,12 @@ def main() -> int: apikey_prod = "<%= @apikey_prod %>" cosmos_command = ['sudo run-cosmos'] - nc_upgrade_command = 'sudo /usr/local/bin/occ config:editable -on ' + nc_upgrade_command = 'sudo /usr/local/bin/occ config:editable --on ' nc_upgrade_command += '&& sudo /usr/local/bin/occ upgrade ' nc_upgrade_command += '&& sudo /usr/local/bin/occ config:editable --off' - repair_command = 'sudo /usr/local/bin/occ maintenance:repair ' + repair_command = 'sudo /usr/local/bin/occ config:editable --on ' + repair_command += '&& sudo /usr/local/bin/occ maintenance:repair ' + repair_command += '&& sudo /usr/local/bin/occ config:editable --off ' repair_command += '&& sudo /usr/local/bin/occ db:add-missing-indices ' repair_command += '&& sudo /usr/local/bin/occ db:add-missing-columns ' repair_command += '&& sudo /usr/local/bin/occ db:add-missing-primary-keys'