summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xikiwiki12
1 files changed, 5 insertions, 7 deletions
diff --git a/ikiwiki b/ikiwiki
index 79b7eff90..6f66c5ea4 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -429,20 +429,18 @@ sub main () { #{{{
require IkiWiki::Setup;
setup();
}
-
- lockwiki();
-
- if ($config{wrapper}) {
+ elsif ($config{wrapper}) {
+ lockwiki();
require IkiWiki::Wrapper;
gen_wrapper();
- exit;
}
-
- if ($config{cgi}) {
+ elsif ($config{cgi}) {
+ lockwiki();
require IkiWiki::CGI;
cgi();
}
else {
+ lockwiki();
loadindex() unless $config{rebuild};
require IkiWiki::Render;
rcs_update();