diff --git a/medicine/run.sh b/medicine/run.sh index 8709485..d596ac6 100644 --- a/medicine/run.sh +++ b/medicine/run.sh @@ -1,5 +1,7 @@ #!/bin/sh +set -e + COMMAND="$1" ARGUMENT="$2" @@ -11,7 +13,7 @@ pull_images() { backup_database() { year_month=$(date +%Y%m) - backup_date = $(date %Y%m%d_%H%M) + backup_date=$(date +%Y%m%d_%H%M) mkdir -p foo "/root/medicine-backups/${year_month}" docker exec -i medicine-stack-postgres \ pg_dump --no-owner -U postgres -F c \