-u $user corrig pour cas user=root
darcs-hash:20010313124633-92525-1c219f19615d8bdff615421a29ddcf0e465a2ad3.gz
This commit is contained in:
parent
ddcee356db
commit
e095256fc2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue