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