Mercurial > hgrepos > hgweb.cgi > s4
diff s4-start.sh @ 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 | 9cf0b6b7bb90 |
line wrap: on
line diff
--- a/s4-start.sh Sat Apr 06 17:41:27 2019 +0900 +++ b/s4-start.sh Sat Apr 06 17:42:41 2019 +0900 @@ -89,6 +89,9 @@ fi m4 -P -I scripts -D_SHELL_=`which sh` \ -D_CASE_=$casefile s4.cgi.m4 > index.cgi && chmod +x index.cgi + if [ "$wrap" ]; then + mv -f index.cgi s4.cgi + fi (echo "ADMIN=$ADMIN" [ "$guest" ] && echo "guestonlymode=1") >> s4-config.sh sq $db "REPLACE INTO user VALUES('$ADMIN');" @@ -97,7 +100,6 @@ AddHandler cgi-script .cgi EOF if [ -n "$wrap" -a pwrap.c -nt index.cgi ]; then - mv -f index.cgi s4.cgi && ${CC:-gcc} -o index.cgi pwrap.c \ && chmod u+s index.cgi \ && rc=0