diff --git a/main.sh b/main.sh index ab4b96e..a8b9ac7 100755 --- a/main.sh +++ b/main.sh @@ -1,8 +1,8 @@ #!/bin/bash -source $(pwd)/variables.conf +source "$(dirname "$0")/variables.conf" -KEY="$(pwd)/dns.key" +KEY="$(dirname "$0")/dns.key" TTL=604800 FQDN=$(hostname)