exec @docker @restore_db @no_cleanup
Some checks failed
Setup Native Action / native (3.12.7) (push) Has been skipped
Setup Native Action / docker (3.12.7) (push) Failing after 1m53s

This commit is contained in:
hoangvv 2025-01-15 15:41:12 +07:00
parent f913523ac1
commit f4d9afe2e4

View File

@ -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