dn42-configs/install-roa.sh
2025-08-10 11:57:46 +02:00

18 lines
No EOL
382 B
Bash

#!/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