postinst is in liquidsoap 1.1.1-7.2ubuntu1.
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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #! /bin/sh
# postinst script for liquidsoap
set -e
case "$1" in
configure)
;;
abort-upgrade|abort-remove|abort-deconfigure)
exit 0
;;
*)
echo "postinst called with unknown argument \`$1'" >&2
exit 1
;;
esac
if ! getent group liquidsoap >/dev/null 2>&1; then
addgroup --system liquidsoap
fi
# Check for an account named 'liquidsoap'
if ! id liquidsoap >/dev/null 2>&1; then
# Create the new system account
adduser --system --disabled-password --disabled-login \
--home /usr/share/liquidsoap --ingroup liquidsoap liquidsoap
fi
# Add again /usr/share/liquidsoap if user was already created
if ! test -d /usr/share/liquidsoap; then
mkdir /usr/share/liquidsoap
fi
# Fix directories ownership
chown -R root:root /usr/share/liquidsoap
chown -R liquidsoap:liquidsoap /var/log/liquidsoap
# Automatically added by dh_installinit
if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ]; then
if [ -x "/etc/init.d/liquidsoap" ]; then
update-rc.d liquidsoap defaults >/dev/null
invoke-rc.d liquidsoap start || exit $?
fi
fi
# End automatically added section
exit 0
|