Compare commits

..

2 Commits

Author SHA1 Message Date
04f515f995 Add Type=oneshot to service 2022-02-11 21:18:04 +01:00
edc32f9ca2 Replace pwd by dirname 2022-02-11 21:17:44 +01:00
2 changed files with 3 additions and 2 deletions

View File

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

View File

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