From 884e5cb044602a7d7a0f9b49bca4c4880fc5570b Mon Sep 17 00:00:00 2001 From: Florian Zirker Date: Tue, 5 Mar 2024 07:07:05 +0000 Subject: [PATCH] improve nextcloud update script --- nextcloud/update-nc.sh | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/nextcloud/update-nc.sh b/nextcloud/update-nc.sh index 2886d18..377bbeb 100755 --- a/nextcloud/update-nc.sh +++ b/nextcloud/update-nc.sh @@ -1,11 +1,19 @@ +#/bin/bash/ + +function occ { + docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ "$@" +} + + #docker compose build --pull #docker compose pull --ignore-buildable -#docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ status +#occ status #docker compose up -d #watch docker compose ps -docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ upgrade -docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ maintenance:repair -docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ db:add-missing-indices -docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ db:add-missing-columns -docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ db:add-missing-primary-keys -docker compose --project-directory /home/flz/git/selfhost/nextcloud exec --user www-data app php occ status + +occ upgrade +occ maintenance:repair +occ db:add-missing-indices +occ db:add-missing-columns +occ db:add-missing-primary-keys +occ status