Close stdin before running the backup-export hooks.
This avoids hanging when we're not in a pty.
This commit is contained in:
1 parent
99e0a43f81
commit
7ed57b285c
1 file changed
+1
-1
@@ -9,7 +9,7 @@ set -e; case "$1" in
|
|||||||
BACKUP_TMP_DIR=$(mktemp -d)
|
BACKUP_TMP_DIR=$(mktemp -d)
|
||||||
BACKUP_TMP_FILE="$BACKUP_TMP_DIR/backup.tar"
|
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
|
pushd $BACKUP_DIR > /dev/null
|
||||||
ls -d */ | grep -oE '[^/]+' > "$BACKUP_TMP_DIR/.dokku_backup_apps"
|
ls -d */ | grep -oE '[^/]+' > "$BACKUP_TMP_DIR/.dokku_backup_apps"
|
||||||
|
|||||||
Reference in new issue
Block a user