From 5d47d50473e14e79c77fa05a6b0057e8a317a5d6 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Thu, 7 Mar 2002 20:33:46 +0000 Subject: deluser.local: Stricten check for removing home (fatal error!!!). --- deluser.local | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deluser.local') 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 # -# $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 -- cgit v1.2.3