Close stdin before running the backup-export hooks.

This avoids hanging when we're not in a pty.
This commit is contained in:
Paul Lietar
2013-11-22 22:46:54 +00:00
parent 99e0a43f81
commit 7ed57b285c

View File

@@ -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"