Mercurial > hgrepos > hgweb.cgi > s4
changeset 526:f86b316d7da7
Compile pwrap.c anyway
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sat, 06 Apr 2019 18:13:25 +0900 |
parents | dd7bedb6a83c |
children | f9259379ee24 |
files | s4-start.sh |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/s4-start.sh Sat Apr 06 18:08:05 2019 +0900 +++ b/s4-start.sh Sat Apr 06 18:13:25 2019 +0900 @@ -94,13 +94,14 @@ mv -f index.cgi s4.cgi fi (echo "ADMIN=$ADMIN" + echo "S4TYPE=$TYPE" [ "$guest" ] && echo "guestonlymode=1") >> s4-config.sh sq $db "REPLACE INTO user VALUES('$ADMIN');" cat > .htaccess <<-EOF DirectoryIndex index.cgi AddHandler cgi-script .cgi EOF - if [ -n "$wrap" -a pwrap.c -nt index.cgi ]; then + if [ -n "$wrap" ]; then ${CC:-gcc} -o index.cgi pwrap.c \ && chmod u+s index.cgi \ && rc=0