#!/bin/sh # postinst script for neatx # # see: dh_installdeb(1) set -e case "$1" in configure) if ! getent passwd nx >/dev/null; then echo "NX user is not present, you should verify if the nx-common package is configured." exit 1 fi update-alternatives --install /usr/bin/nxserver nxserver /usr/lib/neatx/nxserver-login-wrapper 60 chmod 1777 /var/lib/neatx/sessions /usr/share/nx-common/nxkeymanager --install ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac # dh_installdeb will replace this with shell code automatically # generated by other debhelper scripts. #DEBHELPER# exit 0