Files
nlnetlabs-routinator/pkg/debian/postinst
T
Ximon Eighteen e30777c185 Build Routinator RPM packages (#566)
Build and test RPMs for CentOS 7 & 8:
- Add a new RPM packaging workflow. We should probably merge this into the main packaging workflow.
- Move packaging scripts under pkg
- Move the generated Debian changelog under target/debian/.
- Inform the user what the `routinator-init` script is trying to do, useful in case it fails (e.g. because it can't find a way to become the 'routinator' user).
- Don't run routinator-init as sudo when root.
- Set cargo-deb search paths correctly for new pkg/ directory structure.
2021-05-31 14:46:22 +02:00

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#