diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-13 19:10:29 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-03-13 19:10:29 +0000 |
commit | f7f45d6a0ad41f3cd077b0310ce83f199b658b4d (patch) | |
tree | da4f915ff1e4c4883923c18480922b2466d71c69 /ikiwiki | |
parent | ac69a979059198a3716d1e177d177e978e1f1785 (diff) |
add rebuild after calling setup, better format for setup files
Diffstat (limited to 'ikiwiki')
-rwxr-xr-x | ikiwiki | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1152,6 +1152,7 @@ sub cgi () { #{{{ sub setup () { # {{{ my $setup=possibly_foolish_untaint($config{setup}); + delete $config{setup}; open (IN, $setup) || error("read $setup: $!\n"); local $/=undef; my $code=<IN>; @@ -1159,7 +1160,15 @@ sub setup () { # {{{ close IN; eval $code; error($@) if $@; - print "ikiwiki setup complete\n"; + print "$config{wikiname} setup complete, now forcing a rebuild.\n"; + $config{cgi}=0; + $config{rebuild}=1; + foreach my $c (keys %config) { + $config{$c}=possibly_foolish_untaint($config{$c}) + if defined $config{$c}; + } + refresh(); + saveindex(); exit; } #}}} |