Mercurial > hgrepos > hgweb.cgi > s4
diff s4-newworld.sh @ 965:b6d1384e1b2c draft
s4-newworld fixed so that account sychronization done at the time
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 20 Feb 2022 15:37:50 +0900 |
parents | 102c2b14c5d8 |
children | edd96c59c8a2 |
line wrap: on
line diff
--- a/s4-newworld.sh Sun Feb 20 08:47:31 2022 +0900 +++ b/s4-newworld.sh Sun Feb 20 15:37:50 2022 +0900 @@ -34,7 +34,7 @@ echo "wl=$S4WORLDLIST" echo "$dispname:$shortname:$desc" # Create config -DB=db/$shortname.sq3; export DB +S4INITDB=db/$shortname.sq3; export S4INITDB `dirname $0`/s4-init.sh . `dirname $0`/s4-config.sh if ! type htmlescape >/dev/null 2>&1; then @@ -54,6 +54,7 @@ masterdb=`(unset DB; . ./s4-config.sh; echo $DB)` S4MASTERDB=${masterdb:-db/cgi.sq3} +DB=$newdb; export DB echo Synching account: db=$db URL=$URL isCGI=$isCGI mas=$S4MASTERDB . ./s4-world.sh && syncaccount 'force' echo Synching done @@ -67,9 +68,8 @@ S4MASTERURL=\$URL URL=`dirname ${URL}.`/s4-world-$shortname$cgiext S4COLOR="$bgcolor" # Change this! + S4MASTERDB=\$DB # \$DB always points to master DB=$dbdir/$shortname.sq3 - SESSDB=$dbdir/sess.sq3 - S4MASTERDB=$S4MASTERDB S4CSS=$shortname.css TMPDIR=$tmpdir/$shortname EOF