mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
Close stdin before running the backup-export hooks.
This avoids hanging when we're not in a pty.
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user