Skip to content

Commit b824d13

Browse files
koelle25alexmv
authored andcommitted
Fix missing BACKUP_FILE variable missing in basename command
1 parent 454193c commit b824d13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ appRestore() {
532532
waitingForDatabase
533533
tar -zxvf "$DATA_DIR/backups/$BACKUP_FILE" -C /tmp
534534
psql -h "$DB_HOST" -p "$DB_HOST_PORT" -U "$DB_USER" "$DB_NAME" < "/tmp/$(basename "$BACKUP_FILE" | cut -d. -f1)/database-postgres.sql"
535-
rm -r "/tmp/$(basename | cut -d. -f1)/"
535+
rm -r "/tmp/$(basename "$BACKUP_FILE" | cut -d. -f1)/"
536536
echo "Restore process succeeded. Exiting."
537537
exit 0
538538
}

0 commit comments

Comments
 (0)