summaryrefslogtreecommitdiff
path: root/deluser.local
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-03-07 20:33:46 +0000
committerJonas Smedegaard <dr@jones.dk>2002-03-07 20:33:46 +0000
commit5d47d50473e14e79c77fa05a6b0057e8a317a5d6 (patch)
treebfb4c4c0c79eec5ac3326d623bcec73ca597c11c /deluser.local
parent85d7610aadf1be8e4d1bece0a5ad5d63ccd3089c (diff)
deluser.local: Stricten check for removing home (fatal error!!!).
Diffstat (limited to 'deluser.local')
-rwxr-xr-xdeluser.local4
1 files changed, 2 insertions, 2 deletions
diff --git a/deluser.local b/deluser.local
index 8acd5f5..0dc321b 100755
--- a/deluser.local
+++ b/deluser.local
@@ -3,7 +3,7 @@
# /usr/local/sbin/deluser.local
# Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk>
#
-# $Id: deluser.local,v 1.8 2002-03-07 16:22:51 jonas Exp $
+# $Id: deluser.local,v 1.9 2002-03-07 20:33:46 jonas Exp $
#
# Common deluser additions for Spiff and Xenux networks
#
@@ -57,7 +57,7 @@ if [ -n "$DUMMYSHAREDDIR" ]; then
fi
# Workaround: It seems deluser avoids symlinks when told to remove homedir
-if [ "$REMOVE_HOME" -a -d $OLDHOMEDIR ]; then
+if [ "$REMOVE_HOME" = "1" -a -d $OLDHOMEDIR ]; then
echo "Removing $OLDHOMEDIR..."
rm -rf $OLDHOMEDIR
fi