postinst is in obs-worker 2.7.4-2.
This file is a maintainer script. It is executed when installing (*inst) or removing (*rm) the package.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #!/bin/sh -e
if ! getent group obsworker > /dev/null; then
addgroup --system --quiet obsworker
fi
if ! getent passwd obsworker > /dev/null; then
adduser --system --quiet \
--ingroup obsworker --shell /bin/false \
--home /usr/lib/obs --no-create-home \
--shell /bin/false obsworker
usermod -c "User for OBS Worker node" obsworker
fi
# Automatically added by dh_installinit/10.7.2ubuntu2
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/obsworker" ]; then
update-rc.d obsworker defaults >/dev/null || exit $?
fi
fi
# End automatically added section
|