Set scripts to new run_directory norm

This commit is contained in:
Alexandre CATTEAU 2022-09-22 18:51:37 +02:00
parent 3d8c091ee4
commit 1c30d1c4cc
2 changed files with 4 additions and 3 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
run_directory=$(dirname "$0")
run_directory=$(dirname $(readlink -f "$0"))
if [ -f $run_directory/.disabled ]; then
echo "Installation is disabled. Exiting..."

View File

@ -1,8 +1,9 @@
#!/usr/bin/env bash
source "$(dirname "$0")/variables.conf"
run_directory=$(dirname $(readlink -f "$0"))
source "$run_directory/variables.conf"
KEY="$(dirname "$0")/dns.key"
KEY="$run_directory/dns.key"
TTL=604800
FQDN=$(hostname)