Mercurial > hgrepos > hgweb.cgi > s4
changeset 767:2cff065862fd feature-world
Initialization of DB location fixed
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Mon, 08 Jun 2020 06:31:37 +0900 |
parents | f36f1f148a4f |
children | c06c2df8a25a |
files | s4-funcs.sh |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-funcs.sh Sun Jun 07 19:28:37 2020 +0900 +++ b/s4-funcs.sh Mon Jun 08 06:31:37 2020 +0900 @@ -4,9 +4,9 @@ test -n "$HTTP_HOST" && isCGI=true if $isCGI; then - case "$0" in + case "$SCRIPT_NAME" in *-world-*) - S4WORLD=${0#*world-} + S4WORLD=${SCRIPT_NAME#*world-} S4WORLD=${S4WORLD%.*} echo S4WORLD=$S4WORLD >&2 worldconf=s4-config-${S4WORLD}.sh @@ -28,7 +28,7 @@ querylog=${QUERYLOG:-$tmpdir/query.log} searchlog=${SEARCHLOG:-$tmpdir/search.log} db=${DB:-$dbdir/cgi.sq3} -sessdb=$dbdir/sess.sq3 +sessdb=${SESSDB:-$dbdir/sess.sq3} userupdateflag=$dbdir/userupdate sesstb=tmp.sess workdb=$dbdir/tmpdata.sq3