Add nextcloud hooks
This commit is contained in:
parent
21f20d7b03
commit
af5be2c1ea
1 changed files with 9 additions and 0 deletions
9
nextcloud.sh
Normal file
9
nextcloud.sh
Normal 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
|
||||||
|
}
|
Loading…
Reference in a new issue