diff options
author | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-07-12 05:31:41 +0000 |
---|---|---|
committer | Matthew N. Dodd <mdodd@FreeBSD.org> | 2002-07-12 05:31:41 +0000 |
commit | f36fcd52f273a1b1112ed822369105c8042e515b (patch) | |
tree | 9716d2828f37f825a166c984d81c78e9481c830d /security/sfs/pkg-deinstall | |
parent | 47c96a504d78001774ff6e3e070c5260edc623c9 (diff) |
Notes
Diffstat (limited to 'security/sfs/pkg-deinstall')
-rw-r--r-- | security/sfs/pkg-deinstall | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/security/sfs/pkg-deinstall b/security/sfs/pkg-deinstall index cf61b7097f18..0f4324c2ca45 100644 --- a/security/sfs/pkg-deinstall +++ b/security/sfs/pkg-deinstall @@ -1,19 +1,24 @@ #!/bin/sh +if [ -n "${PACKAGE_BUILDING}" ]; then + exit 0 +fi + if [ "$2" != "POST-DEINSTALL" ]; then exit 0 fi USER=sfs GROUP=sfs +PW=/usr/sbin/pw SFSDIR=/var/spool/sfs -if pw groupshow "${GROUP}" >/dev/null 2>&1; then +if ${PW} groupshow "${GROUP}" >/dev/null 2>&1; then echo "If you're done with SFS permanently, delete the sfs group manually: pw groupdel ${GROUP}" | fmt fi -if pw usershow "${USER}" >/dev/null 2>&1; then +if ${PW} usershow "${USER}" >/dev/null 2>&1; then echo echo "If you're done with SFS permanently, delete the sfs user manually: pw userdel ${USER}" | fmt fi |