diff options
author | Jonas Smedegaard <dr@jones.dk> | 2003-06-28 19:27:05 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2003-06-28 19:27:05 +0000 |
commit | ffc4746fc1eca95cdbdd77eaf158e313b95fea74 (patch) | |
tree | 47bc82eb992b3d3777743cf87cdafdefc1c7fc7b /localwebstats | |
parent | 559fb6f7bd83f2233f28f6bed7ec16e0fc9f4b6a (diff) |
Slightly more sane post_init.
Diffstat (limited to 'localwebstats')
-rwxr-xr-x | localwebstats | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebstats b/localwebstats index a5ddbfa..6afed70 100755 --- a/localwebstats +++ b/localwebstats @@ -3,7 +3,7 @@ # /usr/local/sbin/localwebstats # Copyright 2001-2002 Jonas Smedegaard <dr@jones.dk> # -# $Id: localwebstats,v 1.27 2003-06-28 19:18:42 jonas Exp $ +# $Id: localwebstats,v 1.28 2003-06-28 19:27:05 jonas Exp $ # # Webstats maintenance script # @@ -103,7 +103,7 @@ function rmagic_cfg() { echo /etc/rmagic/rmagic_$3.conf; } function webalizer_cfg() { echo /etc/webalizer_$3.conf; } function modlogan_cfg() { echo /etc/modlogan/modlogan_$3.conf; } function pre_init() { true; } -function post_init() { [ -f $2/COMMON/index.html ] && cp $2/COMMON/index.html `statsdir $1 $2 $3`/; } +function post_init() { test -f $2/COMMON/index.html && cp $2/COMMON/index.html `statsdir $1 $2 $3`/; } function pre_update() { true; } function post_update() { true; } |