Compare commits

...

3 Commits

Author SHA1 Message Date
8cac183c17 changed rights 2024-02-05 21:06:38 +01:00
78ea7ba2ff changed script path 2024-02-05 21:02:56 +01:00
f0c235ac67 changed path 2024-02-05 21:00:26 +01:00
2 changed files with 3 additions and 3 deletions

2
cleanup-all.sh Normal file → Executable file
View 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_script.sh"
CLEANUP_SCRIPT="$SCRIPT_DIR/cleanup.sh"
# Path to the main directory
MAIN_DIRECTORY="/Backups"

4
cleanup.sh Normal file → Executable file
View 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 ../directory-validator/directory-validator.py "$SUBDIR" --validate
python $scripts_directory/directory-validator/directory-validator.py "$SUBDIR" --validate
VALIDATION_STATUS=$?
if [ $VALIDATION_STATUS -eq 0 ]; then