From e095256fc2a245165d92bef0187dc541732afad4 Mon Sep 17 00:00:00 2001 From: krempp Date: Tue, 13 Mar 2001 13:46:33 +0100 Subject: [PATCH] -u $user corrig pour cas user=root darcs-hash:20010313124633-92525-1c219f19615d8bdff615421a29ddcf0e465a2ad3.gz --- supers/ntop | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/supers/ntop b/supers/ntop index 1af811fd..996d3195 100755 --- a/supers/ntop +++ b/supers/ntop @@ -10,10 +10,11 @@ prog=`basename $0` # ca permet de faire des scripts qui lancent super sur eux-memes.. test "X$SUPERCMD" = "X$prog" || test "X$UID" = "X0" || exec /usr/bin/super $prog ${1+"$@"} # le script s'arrete ici ds ce cas. +test "X$UID" = "X0" && ORIG_LOGNAME=root # Contenu du script : rep=${ORIG_HOME-$HOME} echo Putting ntop DBs in $rep -/usr/local/bin/ntop -P $rep -l 300 -a $rep/access.log -u $ORIG_LOGNAME ${1+"$@"} +/usr/local/bin/ntop -P $rep -a $rep/access.log -u $ORIG_LOGNAME ${1+"$@"} #-l 300