Compare commits
2 Commits
7dfb984d27
...
04f515f995
Author | SHA1 | Date | |
---|---|---|---|
04f515f995 | |||
edc32f9ca2 |
4
main.sh
4
main.sh
@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
source $(pwd)/variables.conf
|
source "$(dirname "$0")/variables.conf"
|
||||||
|
|
||||||
KEY="$(pwd)/dns.key"
|
KEY="$(dirname "$0")/dns.key"
|
||||||
TTL=604800
|
TTL=604800
|
||||||
|
|
||||||
FQDN=$(hostname)
|
FQDN=$(hostname)
|
||||||
|
@ -2,5 +2,6 @@
|
|||||||
Description=Update (if needed) name server with our IP
|
Description=Update (if needed) name server with our IP
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
User=PH_USER
|
User=PH_USER
|
||||||
ExecStart=PH_DIRECTORY/main.sh
|
ExecStart=PH_DIRECTORY/main.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user