petit chgt
darcs-hash:20010313134917-92525-13dfed96789955598d1a585713d474799db41fbf.gz
This commit is contained in:
parent
e095256fc2
commit
fc0db8caac
1 changed files with 2 additions and 2 deletions
|
@ -10,11 +10,11 @@ prog=`basename $0`
|
||||||
# ca permet de faire des scripts qui lancent super sur eux-memes..
|
# ca permet de faire des scripts qui lancent super sur eux-memes..
|
||||||
test "X$SUPERCMD" = "X$prog" || test "X$UID" = "X0" ||
|
test "X$SUPERCMD" = "X$prog" || test "X$UID" = "X0" ||
|
||||||
exec /usr/bin/super $prog ${1+"$@"} # le script s'arrete ici ds ce cas.
|
exec /usr/bin/super $prog ${1+"$@"} # le script s'arrete ici ds ce cas.
|
||||||
test "X$UID" = "X0" && ORIG_LOGNAME=root
|
|
||||||
|
|
||||||
# Contenu du script :
|
# Contenu du script :
|
||||||
|
|
||||||
|
user=${$ORIG_LOGNAME-$USER}
|
||||||
rep=${ORIG_HOME-$HOME}
|
rep=${ORIG_HOME-$HOME}
|
||||||
echo Putting ntop DBs in $rep
|
echo Putting ntop DBs in $rep
|
||||||
/usr/local/bin/ntop -P $rep -a $rep/access.log -u $ORIG_LOGNAME ${1+"$@"} #-l 300
|
/usr/local/bin/ntop -P $rep -a $rep/access.log -u $user ${1+"$@"} #-l 300
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue