s4

diff s4-world.sh @ 896:920818b41cd2

Application/{csv,json} forcibly handled as text/plain
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 31 Dec 2020 10:18:08 +0900
parents 8229c75e9f94
children d81dd0ed2d6d
line diff
     1.1 --- a/s4-world.sh	Tue Dec 22 08:24:23 2020 +0900
     1.2 +++ b/s4-world.sh	Thu Dec 31 10:18:08 2020 +0900
     1.3 @@ -169,12 +169,14 @@
     1.4    [ -z "$forceusersync" -a "$syncflag" -nt "$userupdateflag" ] && return
     1.5    if [ -s "$runflag" ]; then
     1.6      limit=`cat $runflag|tr -c -d 0-9`
     1.7 +    err syncaccount: limit=$limit
     1.8      if [ -n "$limit" -a "$limit" -gt `date +%s` ]; then
     1.9        err "World $S4WORLD account sync withholded by process $$"
    1.10        return		# Running sync by other process not leaching timeout
    1.11      fi
    1.12    fi
    1.13    echo $((`date +%s` + 10)) > $runflag	# Setting running flag by timeout 10s
    1.14 +  err syncaccount: setrunflag[$runflag]=`cat $runflag`
    1.15    query<<-EOF
    1.16  	.bail ON
    1.17  	ATTACH DATABASE "$S4MASTERDB" AS m;