Set scripts to new run_directory norm

This commit is contained in:
Alexandre CATTEAU 2022-09-22 18:50:02 +02:00
parent 0ffb223a4b
commit db1c347c8a
2 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#!/usr/bin/env bash #!/usr/bin/env bash
source "$(dirname "$0")/variables.conf" run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf"
mount $containers_dir mount $containers_dir

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
run_directory=$(dirname "$0") run_directory=$(dirname $(readlink -f "$0"))
user=$(whoami) user=$(whoami)
source "$run_directory/variables.conf" source "$run_directory/variables.conf"