Annotation of freem-mk-debian-package/debian/postinst, revision 1.5
1.5 ! snw 1: #!/bin/bash
! 2: . /usr/share/debconf/confmodule
! 3:
! 4: db_get freem/users_for_group
! 5: for FREEM_USER in $RET
! 6: do
! 7: echo "Adding ${FREEM_USER} to group 'freem'..."
! 8: usermod -aG freem ${FREEM_USER}
! 9: done
1.1 snw 10:
1.4 snw 11: fmadm configure
1.2 snw 12:
13: echo ""
14: echo "======================================================================"
15: echo "FreeM has been installed."
16: echo ""
17: echo ""
1.5 ! snw 18: echo "The following users will have access to FreeM:"
! 19: echo " ${RET}"
! 20: echo ""
! 21: echo "NOTE: If the above users are currently logged in, they must log out"
! 22: echo " and log back in before FreeM will run."
! 23: echo ""
! 24: echo "To add additional users, run 'dpkg-reconfigure freem'."
1.2 snw 25: echo "======================================================================"
26: echo ""
1.1 snw 27:
1.5 ! snw 28: #DEBHELPER#
! 29: exit 0
! 30:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>