From 606bb7792c9fe6560f05649ce5dcb90a928ff8b6 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Sun, 10 Aug 2025 11:57:46 +0200 Subject: [PATCH] Add install-roa.sh --- install-roa.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 install-roa.sh diff --git a/install-roa.sh b/install-roa.sh new file mode 100644 index 0000000..08222e5 --- /dev/null +++ b/install-roa.sh @@ -0,0 +1,18 @@ +#!/bin/sh +set -euo pipefail + +if ! systemd-notify --booted; then + echo "Systemd is required" + exit 1 +fi + +if ! [ $(id -u) = 0 ]; then + echo "Must be run as root" + exit 1 +fi + +cp etc/systemd/system/dn42-roa.service /etc/systemd/system/dn42-roa.service +cp etc/systemd/system/dn42-roa.timer /etc/systemd/system/dn42-roa.timer + +systemctl daemon-reload +systemctl enable dn42-roa.timer \ No newline at end of file