mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-12-05 02:28:06 +01:00
Implemented database update for nextcloud
This commit is contained in:
parent
ebd8154d83
commit
6efb66c92b
@ -110,10 +110,17 @@ def update_nextcloud():
|
||||
"""
|
||||
Performs the necessary Nextcloud update procedures, including maintenance and app updates.
|
||||
"""
|
||||
print("Start Nextcloud update procedure.")
|
||||
print("Start Nextcloud upgrade procedure.")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ upgrade")
|
||||
print("Start Nextcloud repairing procedure.")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ maintenance:repair")
|
||||
print("Start Nextcloud update procedure.")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ app:update --all")
|
||||
print("Start Nextcloud add-missing procedure.")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ db:add-missing-columns")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ db:add-missing-indices")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ db:add-missing-primary-keys")
|
||||
print("Deacitvate Maintanance Mode")
|
||||
update_procedure("docker-compose exec -T -u www-data application /var/www/html/occ maintenance:mode --off")
|
||||
|
||||
def update_discourse(directory):
|
||||
|
Loading…
Reference in New Issue
Block a user