Replace pwd by dirname

This commit is contained in:
Alexandre CATTEAU 2022-02-11 21:17:44 +01:00
parent 7dfb984d27
commit edc32f9ca2

View File

@ -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)