summaryrefslogtreecommitdiff
path: root/localwebstats
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-06-28 19:32:54 +0000
committerJonas Smedegaard <dr@jones.dk>2003-06-28 19:32:54 +0000
commitec15286da3e623811f4bede7aad1e7b61bf8cd03 (patch)
treeca54af23fd04d4039dfc9310211ff5d39e2cd2e0 /localwebstats
parentffc4746fc1eca95cdbdd77eaf158e313b95fea74 (diff)
3rd attempt on sane default post_init.
Diffstat (limited to 'localwebstats')
-rwxr-xr-xlocalwebstats4
1 files changed, 2 insertions, 2 deletions
diff --git a/localwebstats b/localwebstats
index 6afed70..b46c37b 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.28 2003-06-28 19:27:05 jonas Exp $
+# $Id: localwebstats,v 1.29 2003-06-28 19:32:54 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() { test -f $2/COMMON/index.html && cp $2/COMMON/index.html `statsdir $1 $2 $3`/; }
+function post_init() { statsdir="`statsdir $1 $2 $3`"; test -f $statsdir/../COMMON/index.html && cp $statsdir/../COMMON/index.html $statsdir/; }
function pre_update() { true; }
function post_update() { true; }