Merge pull request #1 from tuskcode/main

feat(db_bash_backup/db.sh): use absolute path for sourcing config.sh
This commit is contained in:
2025-02-20 14:39:00 +01:00
committed by GitHub

View File

@@ -1,7 +1,9 @@
#!/bin/bash #!/bin/bash
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Import the configuration file # Import the configuration file
source config.sh source "$SCRIPT_DIR/config.sh"
# Cycle through all the databases and back up each one # Cycle through all the databases and back up each one
for db_name in "${databases[@]}"; do for db_name in "${databases[@]}"; do