From af5be2c1ea466be1f09d3a03f19fb7f871297626 Mon Sep 17 00:00:00 2001 From: JuliusFreudenberger Date: Sun, 20 Feb 2022 19:05:47 +0100 Subject: [PATCH] Add nextcloud hooks --- nextcloud.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 nextcloud.sh diff --git a/nextcloud.sh b/nextcloud.sh new file mode 100644 index 0000000..6ca8c32 --- /dev/null +++ b/nextcloud.sh @@ -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 +}