This commit is contained in:
2026-03-24 20:36:37 +00:00
parent 1528979366
commit d703d7e153
2 changed files with 7 additions and 3 deletions
+4
View File
@@ -13,9 +13,13 @@
#-----------------------------------------------------------------------------------------------
# Load Master.conf
load_master_conf() {
# Resolve the folder of the calling script (rsync.sh)
local script_dir
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
# Master.conf is one level up from Rsync/
local master_conf="$script_dir/../Master.conf"
if [ -f "$master_conf" ]; then
source "$master_conf"
echo "Loaded Master.conf from $master_conf"