From 7191cbc56e9bde35ae78c46da3d234abcf70e55a Mon Sep 17 00:00:00 2001
From: wu-lee <gitcoop.wu-lee@noodlefactory.co.uk>
Date: Tue, 28 Aug 2018 16:52:19 +0100
Subject: [PATCH] mastodon_db_backup.sh - fix absence of container name

---
 backups/mastodon_db_backup.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/backups/mastodon_db_backup.sh b/backups/mastodon_db_backup.sh
index 3de43e7..ddb4fc4 100644
--- a/backups/mastodon_db_backup.sh
+++ b/backups/mastodon_db_backup.sh
@@ -21,7 +21,7 @@ backup() {
   rm -f $(readlink -f "$backupdir/$link")
 
   # create new backup file
-  docker exec pg_dumpall -U postgres -c -v | gzip >"$backupdir/$file"
+  docker exec -it "$cname" pg_dumpall -U postgres -c -v | gzip >"$backupdir/$file"
   status=$?
 
   # link the sequence number to it
-- 
GitLab