#! /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