From d62a63c3841d3ef005bbf1494c7cdbfa7c25863f Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 14 Mar 2023 01:23:11 -0700 Subject: update for Hetzner instead of Linode --- systemd/hetzner-ddns@.service | 6 ++++++ systemd/hetzner-ddns@.timer | 9 +++++++++ systemd/hetzner-ddns@home.example.org.service.d/opts.conf | 2 ++ systemd/linode-ddns@.service | 6 ------ systemd/linode-ddns@.timer | 9 --------- systemd/linode-ddns@home.example.org.service.d/opts.conf | 2 -- 6 files changed, 17 insertions(+), 17 deletions(-) create mode 100644 systemd/hetzner-ddns@.service create mode 100644 systemd/hetzner-ddns@.timer create mode 100644 systemd/hetzner-ddns@home.example.org.service.d/opts.conf delete mode 100644 systemd/linode-ddns@.service delete mode 100644 systemd/linode-ddns@.timer delete mode 100644 systemd/linode-ddns@home.example.org.service.d/opts.conf (limited to 'systemd') diff --git a/systemd/hetzner-ddns@.service b/systemd/hetzner-ddns@.service new file mode 100644 index 0000000..040fb5d --- /dev/null +++ b/systemd/hetzner-ddns@.service @@ -0,0 +1,6 @@ +[Unit] +Description=Hetzner DDNS updater + +[Service] +Type=oneshot +ExecStart=hetzner-ddns.sh %i diff --git a/systemd/hetzner-ddns@.timer b/systemd/hetzner-ddns@.timer new file mode 100644 index 0000000..56b87ea --- /dev/null +++ b/systemd/hetzner-ddns@.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Regular updates of Hetzner DDNS + +[Timer] +OnBootSec=2m +OnUnitActiveSec=30m + +[Install] +WantedBy=timers.target diff --git a/systemd/hetzner-ddns@home.example.org.service.d/opts.conf b/systemd/hetzner-ddns@home.example.org.service.d/opts.conf new file mode 100644 index 0000000..1e62794 --- /dev/null +++ b/systemd/hetzner-ddns@home.example.org.service.d/opts.conf @@ -0,0 +1,2 @@ +[Service] +Environment="HETZNER_TOKEN=access_token" diff --git a/systemd/linode-ddns@.service b/systemd/linode-ddns@.service deleted file mode 100644 index cc445cb..0000000 --- a/systemd/linode-ddns@.service +++ /dev/null @@ -1,6 +0,0 @@ -[Unit] -Description=Linode DDNS updater - -[Service] -Type=oneshot -ExecStart=linode-ddns.sh %i diff --git a/systemd/linode-ddns@.timer b/systemd/linode-ddns@.timer deleted file mode 100644 index d87ed06..0000000 --- a/systemd/linode-ddns@.timer +++ /dev/null @@ -1,9 +0,0 @@ -[Unit] -Description=Regular updates of Linode DDNS - -[Timer] -OnBootSec=2m -OnUnitActiveSec=30m - -[Install] -WantedBy=timers.target diff --git a/systemd/linode-ddns@home.example.org.service.d/opts.conf b/systemd/linode-ddns@home.example.org.service.d/opts.conf deleted file mode 100644 index cbd2bea..0000000 --- a/systemd/linode-ddns@home.example.org.service.d/opts.conf +++ /dev/null @@ -1,2 +0,0 @@ -[Service] -Environment="LINODE_TOKEN=access_token" -- cgit v1.2.3-70-g09d2