postinst is in python-autopilot 1.4.1+17.04.20170305-0ubuntu1.
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 22 23 24 25 26 27 28 29 30 | #!/bin/sh
# postinst for autopilot
set -e
AUTOPILOT_GROUP=autopilot
if [ "$1" = configure ]; then
# Add the autopilot group
addgroup --quiet \
--system \
--no-create-home \
"$AUTOPILOT_GROUP" || true
# Add each sudo user to the autopilot group
for u in $(getent group sudo | sed -e "s/^.*://" -e "s/,/ /g"); do
adduser --quiet "$u" "$AUTOPILOT_GROUP" > /dev/null || true
done
# udev rules were installed, trigger creation of the /dev node
udevadm trigger --action=change
fi
# Automatically added by dh_python2:
if which pycompile >/dev/null 2>&1; then
pycompile -p python-autopilot
fi
# End automatically added section
|