diff options
author | Jonas Smedegaard <dr@jones.dk> | 2004-09-09 10:14:42 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2004-09-09 10:14:42 +0000 |
commit | 375409008e8c84e7e81b781de09fd3e20783fd02 (patch) | |
tree | 2918639b014e3ab9c244cc80efe7a248f4ed92a5 /localwebstats | |
parent | 5565bf1fcaec028c620878158c761f695029b24f (diff) |
Let default post_init() fail gracefully.
Diffstat (limited to 'localwebstats')
-rwxr-xr-x | localwebstats | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebstats b/localwebstats index 1e4c766..34479e4 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.37 2004-09-09 09:57:27 jonas Exp $ +# $Id: localwebstats,v 1.38 2004-09-09 10:14:42 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() { statsdir="`statsdir $1 $2 $3`"; test -f $statsdir/../COMMON/index.html && cp $statsdir/../COMMON/index.html $statsdir/; } +function post_init() { statsdir="`statsdir $1 $2 $3`"; test -f $statsdir/../COMMON/index.html && cp $statsdir/../COMMON/index.html $statsdir/ || /bin/true; } function pre_update() { true; } function post_update() { true; } |