From 4a92605aa2b0e4c4ddfa172b6e0a65b0cc44791c Mon Sep 17 00:00:00 2001 From: Tine Date: Thu, 2 Jan 2025 16:42:20 +0100 Subject: [PATCH] fix(ingress.tjo.cloud): copy service --- ingress.tjo.cloud/install.sh | 2 +- ingress.tjo.cloud/root/systemd/system/dyndns.service | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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]