X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=index.cgi;h=43abf5ddcc288383965904aeb496eb5cd94e3a15;hp=f18743956e9607ce88fe019254b7fd67759c378a;hb=1b5fe5ec8e6ceb580ada4e0ff4fe3955c2457ec0;hpb=ad105acdefe3a76de9abdfd3376527d1960bddc2 diff --git a/index.cgi b/index.cgi index f187439..43abf5d 100755 --- a/index.cgi +++ b/index.cgi @@ -23,6 +23,7 @@ yield_page() { printf 'Content-Type: text/html; charset=utf-8\r\n\r\n' { printf ' [html [head + [title Confetti] [meta name="viewport" content="width=device-width"] [link rel="stylesheet" type="text/css" href="/style.css"] ' @@ -39,8 +40,8 @@ yield_page() { | "${_EXEC}/cgilite/html-sh.sed" } -if [ -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}/main.cgi" ]; then - . "${_EXEC}/${_PATH}/main.cgi" +if [ -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}/index.cgi" ]; then + . "${_EXEC}/${_PATH}/index.cgi" elif [ ! -d "${_EXEC}/${_PATH}" -a -x "${_EXEC}/${_PATH}" ]; then . "${_EXEC}/${_PATH}" elif [ ! -x "${_EXEC}/${_PATH}" -a -r "${_EXEC}/${_PATH}" ]; then