mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup-cleanup.git
synced 2024-12-18 01:22:18 +01:00
removed unecessary trigger
This commit is contained in:
parent
8cac183c17
commit
13b1b7d493
@ -1,8 +1,5 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Define trigger directory argument as TRIGGER_DIR
|
|
||||||
TRIGGER_DIR="$2"
|
|
||||||
|
|
||||||
# Get the absolute path of the directory where the current script is located
|
# Get the absolute path of the directory where the current script is located
|
||||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
|
|
||||||
@ -29,7 +26,7 @@ for BACKUP_FOLDER_PATH in "$MAIN_DIRECTORY"/*; do
|
|||||||
echo "Running cleanup script for folder: $BACKUP_FOLDER"
|
echo "Running cleanup script for folder: $BACKUP_FOLDER"
|
||||||
|
|
||||||
# Call the cleanup script
|
# Call the cleanup script
|
||||||
"$CLEANUP_SCRIPT" "$BACKUP_FOLDER" "$TRIGGER_DIR"
|
"$CLEANUP_SCRIPT" "$BACKUP_FOLDER"
|
||||||
else
|
else
|
||||||
echo "Directory $BACKUP_FOLDER_PATH/backup-docker-to-local not found."
|
echo "Directory $BACKUP_FOLDER_PATH/backup-docker-to-local not found."
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user