changeset 637:2b1339d50b30

Query and search log files can be set by setting environment vars.
author HIROSE Yuuji <yuuji@gentei.org>
date Sun, 03 May 2020 13:44:17 +0900
parents b73ef3fd0e19
children b29e31dc3fbd
files s4-funcs.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/s4-funcs.sh	Wed Apr 29 19:03:17 2020 +0900
+++ b/s4-funcs.sh	Sun May 03 13:44:17 2020 +0900
@@ -13,6 +13,8 @@
 dbdir=${DBDIR:-db}
 tmpfiles=""
 db=${DB:-$dbdir/cgi.sq3}
+querylog=${QUERYLOG:-$tmpdir/query.log}
+searchlog=${SEARCHLOG:-$tmpdir/search.log}
 workdb=$dbdir/tmpdata.sq3
 listentlimit=${LISTENTLIMIT:-30}
 admin=${ADMIN:-hostmaster@example.org}
@@ -49,8 +51,6 @@
 blogreadflagrowid=0
 blogcutoffflagrowid=-1
 whatsnewdays=${WHATS_NEW_DAYS:-14}
-querylog=$tmpdir/query.log
-searchlog=$tmpdir/search.log
 
 tconfs=""
 imgcached=cache/img.`date +%Y/%m`

yatex.org