diff --git a/boot-sms.sh b/boot-sms.sh index 7a978d7..9ff89a8 100755 --- a/boot-sms.sh +++ b/boot-sms.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) source "$run_directory/variables.conf" # Set parameters here diff --git a/install.sh b/install.sh index 7519365..479e8b6 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -run_directory=$(dirname "$0") +run_directory=$(dirname $(readlink -f "$0")) user=$(whoami) if [ -f $run_directory/.disabled ]; then