improve nextcloud update script

This commit is contained in:
Florian Zirker 2024-03-05 07:07:05 +00:00
parent cbb68cdbd3
commit 884e5cb044

View file

@ -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