exec @docker @restore_db @no_cleanup
This commit is contained in:
parent
f913523ac1
commit
f4d9afe2e4
@ -54,7 +54,7 @@ main(){
|
|||||||
BACKUP_FILE="$DEPLOYMENT_DIR/backup/backup.zip"
|
BACKUP_FILE="$DEPLOYMENT_DIR/backup/backup.zip"
|
||||||
|
|
||||||
# Create the deployment directory if it doesn't exist
|
# 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
|
# Check if the download URL is valid
|
||||||
echo "Checking if the URL is valid: $DOWNLOAD_URL"
|
echo "Checking if the URL is valid: $DOWNLOAD_URL"
|
||||||
@ -66,7 +66,7 @@ main(){
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Download the file
|
# 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
|
# Check if the file was downloaded
|
||||||
if [[ -f "$BACKUP_FILE" ]]; then
|
if [[ -f "$BACKUP_FILE" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user