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'