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"
|
||||
cp root/systemd/system/dyndns.service /systemd/system/dyndns.service
|
||||
cp -r root/etc/default/dyndns /etc/default/dyndns
|
||||
{
|
||||
echo "DIGITALOCEAN_TOKEN=${DIGITALOCEAN_TOKEN}"
|
||||
echo "NAME=${CLOUD_REGION}"
|
||||
} >>/etc/default/dyndns
|
||||
systemctl daemon-reload
|
||||
systemctl enable --now dyndns
|
||||
systemctl restart dyndns
|
||||
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
[Unit]
|
||||
Description=Dynamic DNS Updater
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
User=nobody
|
||||
ExecStart=/usr/local/bin/dyndns
|
||||
|
||||
[Install]
|
||||
|
|
Loading…
Reference in a new issue