diff -r 000000000000 -r c39c60fcfec8 packages/gms-debian/gms.postinst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/packages/gms-debian/gms.postinst Mon Feb 25 17:45:36 2008 +0000 @@ -0,0 +1,29 @@ +#! /bin/sh +# postinst script for gms + +set -e + +case "$1" in + configure) + if ! getent passwd gms >/dev/null; then + adduser --disabled-password --quiet --system \ + --home /var/gms-media \ + --gecos "GMS media dir" --group gms + fi + if ! getent passwd gms | grep -q /var/run/gms; then + usermod -d /var/gms-media gms + fi + update-rc.d gmsd defaults + invoke-rc.d gmsd start + ;; + abort-upgrade|abort-remove|abort-deconfigure) + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +#DEBHELPER# + +exit 0