Set scripts to new run_directory norm

This commit is contained in:
Alexandre CATTEAU 2022-09-22 18:52:25 +02:00
parent d485e21ce3
commit 9f2d4b6687
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"
# Remove old archive # Remove old archive
old="$backups_directory/profile-$(date -d "-10 days" +'%Y%m%d').tgz" old="$backups_directory/profile-$(date -d "-10 days" +'%Y%m%d').tgz"

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)
if [ -f $run_directory/.disabled ]; then if [ -f $run_directory/.disabled ]; then