Set scripts to new run_directory norm
This commit is contained in:
parent
3d8c091ee4
commit
1c30d1c4cc
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
run_directory=$(dirname "$0")
|
run_directory=$(dirname $(readlink -f "$0"))
|
||||||
|
|
||||||
if [ -f $run_directory/.disabled ]; then
|
if [ -f $run_directory/.disabled ]; then
|
||||||
echo "Installation is disabled. Exiting..."
|
echo "Installation is disabled. Exiting..."
|
||||||
|
5
main.sh
5
main.sh
@ -1,8 +1,9 @@
|
|||||||
#!/usr/bin/env bash
|
#!/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
|
TTL=604800
|
||||||
|
|
||||||
FQDN=$(hostname)
|
FQDN=$(hostname)
|
||||||
|
Loading…
Reference in New Issue
Block a user