From 1b5fe5ec8e6ceb580ada4e0ff4fe3955c2457ec0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 20 Aug 2019 13:56:41 +0200 Subject: [PATCH] changed some code layout, handle categories in separate directory --- cards/{ => categories}/categories.css | 0 cards/{ => categories}/categories.html.sh | 0 cards/{ => categories}/categories.sh | 0 cards/{ => categories}/edit_categories.sh | 0 cards/{ => categories}/text_categories.sh | 0 cards/{ => categories}/update_categories.sh | 0 cards/{export_vcard.sh => export_card.sh} | 0 cards/{main.cgi => index.cgi} | 0 index.cgi | 4 ++-- 9 files changed, 2 insertions(+), 2 deletions(-) rename cards/{ => categories}/categories.css (100%) rename cards/{ => categories}/categories.html.sh (100%) rename cards/{ => categories}/categories.sh (100%) rename cards/{ => categories}/edit_categories.sh (100%) rename cards/{ => categories}/text_categories.sh (100%) rename cards/{ => categories}/update_categories.sh (100%) rename cards/{export_vcard.sh => export_card.sh} (100%) rename cards/{main.cgi => index.cgi} (100%) diff --git a/cards/categories.css b/cards/categories/categories.css similarity index 100% rename from cards/categories.css rename to cards/categories/categories.css diff --git a/cards/categories.html.sh b/cards/categories/categories.html.sh similarity index 100% rename from cards/categories.html.sh rename to cards/categories/categories.html.sh diff --git a/cards/categories.sh b/cards/categories/categories.sh similarity index 100% rename from cards/categories.sh rename to cards/categories/categories.sh diff --git a/cards/edit_categories.sh b/cards/categories/edit_categories.sh similarity index 100% rename from cards/edit_categories.sh rename to cards/categories/edit_categories.sh diff --git a/cards/text_categories.sh b/cards/categories/text_categories.sh similarity index 100% rename from cards/text_categories.sh rename to cards/categories/text_categories.sh diff --git a/cards/update_categories.sh b/cards/categories/update_categories.sh similarity index 100% rename from cards/update_categories.sh rename to cards/categories/update_categories.sh diff --git a/cards/export_vcard.sh b/cards/export_card.sh similarity index 100% rename from cards/export_vcard.sh rename to cards/export_card.sh diff --git a/cards/main.cgi b/cards/index.cgi similarity index 100% rename from cards/main.cgi rename to cards/index.cgi diff --git a/index.cgi b/index.cgi index 170645f..43abf5d 100755 --- a/index.cgi +++ b/index.cgi @@ -40,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 -- 2.39.2