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