From f4d9afe2e4f9fc197dc91e3dbd883041ec0792e5 Mon Sep 17 00:00:00 2001 From: hoangvv Date: Wed, 15 Jan 2025 15:41:12 +0700 Subject: [PATCH] exec @docker @restore_db @no_cleanup --- setup/restore_database.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/restore_database.sh b/setup/restore_database.sh index 163d3ee25..a570dc8bd 100755 --- a/setup/restore_database.sh +++ b/setup/restore_database.sh @@ -54,7 +54,7 @@ main(){ BACKUP_FILE="$DEPLOYMENT_DIR/backup/backup.zip" # Create the deployment directory if it doesn't exist - mkdir -p "$DEPLOYMENT_DIR" + mkdir -p "$DEPLOYMENT_DIR/backup" # Check if the download URL is valid echo "Checking if the URL is valid: $DOWNLOAD_URL" @@ -66,7 +66,7 @@ main(){ fi # Download the file - wget -P "$DEPLOYMENT_DIR" -O "$BACKUP_FILE" "$DOWNLOAD_URL" + wget -P "$DEPLOYMENT_DIR/backup" -O backup.zip "$DOWNLOAD_URL" # Check if the file was downloaded if [[ -f "$BACKUP_FILE" ]]; then