summaryrefslogtreecommitdiff
path: root/systemd
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-12-09 05:14:07 -0800
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-12-09 05:14:07 -0800
commit3e2bb49efc35039d9510ea0f9d11b5446b53c923 (patch)
tree8c85616965dc85281d635fea21d43c2b66f4be70 /systemd
parent7d5817dfcd5f93e56f770353059ba845314f9646 (diff)
downloadlinode-ddns-master.tar.gz
linode-ddns-master.tar.xz
automatically tokenise domainHEADmaster
Diffstat (limited to 'systemd')
-rw-r--r--systemd/linode-ddns@.service2
-rw-r--r--systemd/linode-ddns@home.example.org.service.d/opts.conf2
2 files changed, 1 insertions, 3 deletions
diff --git a/systemd/linode-ddns@.service b/systemd/linode-ddns@.service
index 35905b4..cc445cb 100644
--- a/systemd/linode-ddns@.service
+++ b/systemd/linode-ddns@.service
@@ -3,4 +3,4 @@ Description=Linode DDNS updater
[Service]
Type=oneshot
-ExecStart=linode-ddns.sh "${DOMAIN}" "${RECORD}"
+ExecStart=linode-ddns.sh %i
diff --git a/systemd/linode-ddns@home.example.org.service.d/opts.conf b/systemd/linode-ddns@home.example.org.service.d/opts.conf
index da136e7..cbd2bea 100644
--- a/systemd/linode-ddns@home.example.org.service.d/opts.conf
+++ b/systemd/linode-ddns@home.example.org.service.d/opts.conf
@@ -1,4 +1,2 @@
[Service]
Environment="LINODE_TOKEN=access_token"
-Environment="DOMAIN=example.org"
-Environment="RECORD=home"