1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
post_install() { if ! getent group lxdm > /dev/null ; then groupadd --system lxdm chgrp -R lxdm /var/lib/lxdm chgrp lxdm /etc/lxdm/lxdm.conf chmod +r /etc/lxdm/lxdm.conf fi } post_upgrade() { post_install $1 } post_remove() { if ! getent group lxdm > /dev/null ; then groupdel lxdm fi }