1
0
Fork 0
mirror of https://github.com/overleaf/toolkit.git synced 2025-04-19 07:18:06 +02:00

Stop services before and after backup

This commit is contained in:
June Kelly 2021-08-27 14:24:15 +01:00
parent 27842b922c
commit aa6c7dbc8c

View file

@ -129,6 +129,10 @@ function _main() {
tmp_dir="$(create-tmp-dir)"
echo "Using temp directory: $tmp_dir"
## Stop docker services
echo "Stopping docker-compose services..."
"$TOOLKIT_ROOT/bin/docker-compose" stop 2>/dev/null
## Dump mongo
echo "Dumping mongo..."
dump-mongo "$tmp_dir"
@ -159,6 +163,10 @@ function _main() {
echo "Removing temp files..."
rm -rf "$tmp_dir"
## Stop docker services
echo "Stopping docker-compose services..."
"$TOOLKIT_ROOT/bin/docker-compose" stop 2>/dev/null
echo "Done"
exit 0
}