Add install-roa.sh

This commit is contained in:
Minecon724 2025-08-10 11:57:46 +02:00
commit 606bb7792c

18
install-roa.sh Normal file
View file

@ -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