This commit is contained in:
parent
838da91bbf
commit
4a92605aa2
2 changed files with 5 additions and 1 deletions
|
@ -79,12 +79,12 @@ systemctl restart alloy
|
||||||
|
|
||||||
##
|
##
|
||||||
echo "== Configure Dyndns"
|
echo "== Configure Dyndns"
|
||||||
|
cp root/systemd/system/dyndns.service /systemd/system/dyndns.service
|
||||||
cp -r root/etc/default/dyndns /etc/default/dyndns
|
cp -r root/etc/default/dyndns /etc/default/dyndns
|
||||||
{
|
{
|
||||||
echo "DIGITALOCEAN_TOKEN=${DIGITALOCEAN_TOKEN}"
|
echo "DIGITALOCEAN_TOKEN=${DIGITALOCEAN_TOKEN}"
|
||||||
echo "NAME=${CLOUD_REGION}"
|
echo "NAME=${CLOUD_REGION}"
|
||||||
} >>/etc/default/dyndns
|
} >>/etc/default/dyndns
|
||||||
systemctl daemon-reload
|
|
||||||
systemctl enable --now dyndns
|
systemctl enable --now dyndns
|
||||||
systemctl restart dyndns
|
systemctl restart dyndns
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,11 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=Dynamic DNS Updater
|
Description=Dynamic DNS Updater
|
||||||
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=always
|
||||||
|
User=nobody
|
||||||
ExecStart=/usr/local/bin/dyndns
|
ExecStart=/usr/local/bin/dyndns
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
Loading…
Reference in a new issue