feat(db_bash_backup/db.sh): use absolute path for sourcing config.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user