diff --git a/dl-server/install.sh b/dl-server/install.sh index 1ef66f5..f41424a 100755 --- a/dl-server/install.sh +++ b/dl-server/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) source "$run_directory/variables.conf" diff --git a/dl-server/transmission-vpn.sh b/dl-server/transmission-vpn.sh index a8c2c3e..e9053f4 100755 --- a/dl-server/transmission-vpn.sh +++ b/dl-server/transmission-vpn.sh @@ -9,7 +9,7 @@ # We can enter an infinite loop, but this will effectively prevent transmission from connecting # If both services are stopped, this script will never be run by error -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) source "$run_directory/variables.conf" # Parameters