From 7ed57b285cd98ab95cbb684431135aa041cf2fee Mon Sep 17 00:00:00 2001 From: Paul Lietar Date: Fri, 22 Nov 2013 22:46:54 +0000 Subject: [PATCH] Close stdin before running the backup-export hooks. This avoids hanging when we're not in a pty. --- plugins/backup/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/backup/commands b/plugins/backup/commands index 4f2713be1..a4e406e79 100755 --- a/plugins/backup/commands +++ b/plugins/backup/commands @@ -9,7 +9,7 @@ set -e; case "$1" in BACKUP_TMP_DIR=$(mktemp -d) BACKUP_TMP_FILE="$BACKUP_TMP_DIR/backup.tar" - pluginhook backup-export 1 $BACKUP_DIR | tar -cf $BACKUP_TMP_FILE --files-from - + : | pluginhook backup-export 1 $BACKUP_DIR | tar -cf $BACKUP_TMP_FILE --files-from - pushd $BACKUP_DIR > /dev/null ls -d */ | grep -oE '[^/]+' > "$BACKUP_TMP_DIR/.dokku_backup_apps"