mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Build and sanity check modern and minimal Routinator .deb packages using cargo-deb and GitHub Actions. Also test against Debian 11 (Contributed by @netravnen).
17 lines
305 B
Bash
17 lines
305 B
Bash
#!/bin/sh -e
|
|
|
|
ROUTINATOR_HOME="/var/lib/routinator/"
|
|
ROUTINATOR_USER="routinator"
|
|
|
|
create_user() {
|
|
if id ${ROUTINATOR_USER} > /dev/null 2>&1; then return; fi
|
|
adduser --system --home "${ROUTINATOR_HOME}" --group ${ROUTINATOR_USER}
|
|
}
|
|
|
|
case "$1" in
|
|
configure)
|
|
create_user
|
|
;;
|
|
esac
|
|
|
|
#DEBHELPER# |