diff --git a/ingress.tjo.cloud/install.sh b/ingress.tjo.cloud/install.sh index aa7f104..cc49384 100755 --- a/ingress.tjo.cloud/install.sh +++ b/ingress.tjo.cloud/install.sh @@ -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 diff --git a/ingress.tjo.cloud/root/systemd/system/dyndns.service b/ingress.tjo.cloud/root/systemd/system/dyndns.service index 5fd0a49..a7ef316 100644 --- a/ingress.tjo.cloud/root/systemd/system/dyndns.service +++ b/ingress.tjo.cloud/root/systemd/system/dyndns.service @@ -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]