Add nextcloud hooks

This commit is contained in:
JuliusFreudenberger 2022-02-20 19:05:47 +01:00
parent 21f20d7b03
commit af5be2c1ea

9
nextcloud.sh Normal file
View file

@ -0,0 +1,9 @@
pre() {
docker exec nextcloud_db_1 pg_dump -U postgres nextcloud > /tmp/nextcloud.sql
docker exec -u 33 nextcloud_app_1 ./occ maintenance:mode --on
}
post() {
rm /tmp/nextcloud.sql
docker exec -u 33 nextcloud_app_1 ./occ maintenance:mode --off
}