call checkconfig in --dumpsetup
authorJoey Hess <joey@kitenet.net>
Fri, 5 Aug 2011 20:48:36 +0000 (16:48 -0400)
committerJoey Hess <joey@kitenet.net>
Fri, 5 Aug 2011 21:10:20 +0000 (17:10 -0400)
This avoids warnings when building a setup file from scratch, in which case
some default settings need to be used.

ikiwiki.in

index 339efd37c3ab8655746bff66c4610924936a4c87..adff1411e8aa715a192f3850a7aef59f4cd04f0b 100755 (executable)
@@ -180,6 +180,7 @@ sub main () {
                $config{srcdir}="" if ! defined $config{srcdir};
                $config{destdir}="" if ! defined $config{destdir};
                $config{syslog}=1 if $config{setupsyslog};
+               checkconfig();
                require IkiWiki::Setup;
                IkiWiki::Setup::dump($config{dumpsetup});
        }