Add install-roa.sh
This commit is contained in:
parent
9f62f72b99
commit
606bb7792c
1 changed files with 18 additions and 0 deletions
18
install-roa.sh
Normal file
18
install-roa.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue