From 50ab3d77e62857183018db50d0a7e5b8bfc1fa74 Mon Sep 17 00:00:00 2001 From: Alexandre CATTEAU Date: Thu, 22 Sep 2022 18:54:49 +0200 Subject: [PATCH] Set scripts to new run_directory norm --- dl-server/install.sh | 2 +- dl-server/transmission-vpn.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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