version 1.3 | | version 1.4 |
---|
| | |
case "$1" in | | case "$1" in |
install) | | install) |
| | |
| | # Commented out until I can find the official policy on users for debian |
| | |
# create the 'crossfire' group if it doesn't exist | | # create the 'crossfire' group if it doesn't exist |
grep ^crossfire: /etc/group >/dev/null || { | | # grep ^crossfire: /etc/group >/dev/null || { |
/usr/sbin/groupadd crossfire > /dev/null 2>&1 | | # /usr/sbin/groupadd crossfire > /dev/null 2>&1 |
} | | # } |
| | |
# create 'crossfire' user if absent | | # create 'crossfire' user if absent |
grep ^crossfire: /etc/passwd >/dev/null || { | | # grep ^crossfire: /etc/passwd >/dev/null || { |
/usr/sbin/useradd -d /var/games/crossfire -s /bin/false -g crossfire crossfire | | # /usr/sbin/useradd -d /var/games/crossfire -s /bin/false -g crossfire crossfire |
} | | # } |
| | |
# check for 'crossfire' user and lock the passwd | | # check for 'crossfire' user and lock the passwd |
grep ^exim: /etc/passwd >/dev/null && { | | # grep ^exim: /etc/passwd >/dev/null && { |
/usr/bin/passwd -l crossfire > /dev/null 2>&1 | | # /usr/bin/passwd -l crossfire > /dev/null 2>&1 |
} | | # } |
;; | | ;; |
| | |
upgrade) | | upgrade) |