mirror of
https://github.com/kevinveenbirkenbach/docker-volume-backup-cleanup.git
synced 2024-11-24 14:41:02 +01:00
Compare commits
No commits in common. "8cac183c17cf4af6460a3be797e0d0c2d0712d40" and "62d69bac03b1dae2988649427304f53bc9f573fe" have entirely different histories.
8cac183c17
...
62d69bac03
2
cleanup-all.sh
Executable file → Normal file
2
cleanup-all.sh
Executable file → Normal file
@ -7,7 +7,7 @@ TRIGGER_DIR="$2"
|
||||
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||
|
||||
# Define the path to the original cleanup script using the script directory path
|
||||
CLEANUP_SCRIPT="$SCRIPT_DIR/cleanup.sh"
|
||||
CLEANUP_SCRIPT="$SCRIPT_DIR/cleanup_script.sh"
|
||||
|
||||
# Path to the main directory
|
||||
MAIN_DIRECTORY="/Backups"
|
||||
|
4
cleanup.sh
Executable file → Normal file
4
cleanup.sh
Executable file → Normal file
@ -18,9 +18,9 @@ for SUBDIR in "$MAIN_DIRECTORY"/*; do
|
||||
# Only proceed if it is a directory
|
||||
if [ -d "$SUBDIR" ]; then
|
||||
echo "Validating directory: $SUBDIR"
|
||||
scripts_directory="$(dirname "$(dirname "$(realpath "$0")")")"
|
||||
|
||||
# Call the Python script for validation
|
||||
python $scripts_directory/directory-validator/directory-validator.py "$SUBDIR" --validate
|
||||
python ../directory-validator/directory-validator.py "$SUBDIR" --validate
|
||||
VALIDATION_STATUS=$?
|
||||
|
||||
if [ $VALIDATION_STATUS -eq 0 ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user