Fix repair command

This commit is contained in:
Micke Nordin 2023-04-26 11:22:25 +02:00
parent 8ca66c10ad
commit 75f75732e7
Signed by untrusted user: Micke
GPG key ID: 0DA0A7A5708FE257

View file

@ -69,10 +69,12 @@ def main() -> int:
apikey_prod = "<%= @apikey_prod %>" apikey_prod = "<%= @apikey_prod %>"
cosmos_command = ['sudo run-cosmos'] 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 upgrade '
nc_upgrade_command += '&& sudo /usr/local/bin/occ config:editable --off' 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-indices '
repair_command += '&& sudo /usr/local/bin/occ db:add-missing-columns ' repair_command += '&& sudo /usr/local/bin/occ db:add-missing-columns '
repair_command += '&& sudo /usr/local/bin/occ db:add-missing-primary-keys' repair_command += '&& sudo /usr/local/bin/occ db:add-missing-primary-keys'