s4

changeset 522:9060df7f079b

Move index.cgi before comparison
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 06 Apr 2019 17:42:41 +0900
parents 356320f803dc
children 2fe9cb9f3ce0
files s4-start.sh
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line diff
     1.1 --- a/s4-start.sh	Sat Apr 06 17:41:27 2019 +0900
     1.2 +++ b/s4-start.sh	Sat Apr 06 17:42:41 2019 +0900
     1.3 @@ -89,6 +89,9 @@
     1.4      fi
     1.5      m4 -P -I scripts -D_SHELL_=`which sh` \
     1.6         -D_CASE_=$casefile s4.cgi.m4 > index.cgi && chmod +x index.cgi
     1.7 +    if [ "$wrap" ]; then
     1.8 +      mv -f index.cgi s4.cgi
     1.9 +    fi
    1.10      (echo "ADMIN=$ADMIN"
    1.11       [ "$guest" ] && echo "guestonlymode=1") >> s4-config.sh
    1.12      sq $db "REPLACE INTO user VALUES('$ADMIN');"
    1.13 @@ -97,7 +100,6 @@
    1.14  	AddHandler cgi-script .cgi
    1.15  	EOF
    1.16      if [ -n "$wrap" -a pwrap.c -nt index.cgi ]; then
    1.17 -      mv -f index.cgi s4.cgi &&
    1.18        ${CC:-gcc} -o index.cgi pwrap.c \
    1.19  	&& chmod u+s index.cgi \
    1.20  	&& rc=0