version 1.1 | version 1.2 | |||
---|---|---|---|---|
|
| |||
fi | fi | |||
;; | ;; | |||
remove|upgrade|disappear) | upgrade) | |||
# do nothing | # do nothing | |||
;; | ;; | |||
remove|disappear) | ||||
# remove the 'crossfire' user if it exists | ||||
grep ^crossfire: /etc/passwd >/dev/null && { | ||||
/usr/sbin/userdel crossfire > /dev/null 2>&1 | ||||
} | ||||
# remove the 'crossfire' group if it exists | ||||
grep ^crossfire: /etc/group >/dev/null || { | ||||
/usr/sbin/groupdel crossfire > /dev/null 2>&1 | ||||
} | ||||
;; | ||||
*) | *) | |||
echo "$0: incorrect arguments: $*" >&2 | echo "$0: incorrect arguments: $*" >&2 | |||
exit 1 | exit 1 |
Legend:
|