From: Joey Hess Date: Wed, 29 Oct 2008 18:28:55 +0000 (-0400) Subject: Preserve syslog setting when doing `ikiwiki -setup foo -dumpsetup bar` X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/26e1fe20218f8072a807c24eb129ecd5948b7d06 Preserve syslog setting when doing `ikiwiki -setup foo -dumpsetup bar` The syslog value from the setup file is purposfully ignored when doing ikiwiki -setup, so that it will output to stdout (while generating wrappers that do use the syslog). But that caused -dumpsetup to not preserve the syslog value from the setup file. --- diff --git a/debian/changelog b/debian/changelog index 4547cda3d..bee31b36e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -37,6 +37,7 @@ ikiwiki (2.68) UNRELEASED; urgency=low used to set up anonymous git pushes, and other similar things. * git: Allow [[sha1_commit]] to be used in the diffurl, to support cgit. * shortcut: Fix display of shortcuts while previewing. + * Preserve syslog setting when doing `ikiwiki -setup foo -dumpsetup bar` -- Joey Hess Fri, 17 Oct 2008 20:11:02 -0400 diff --git a/ikiwiki.in b/ikiwiki.in index af5cabdc0..ca499b115 100755 --- a/ikiwiki.in +++ b/ikiwiki.in @@ -163,6 +163,7 @@ sub main () { #{{{ if ($config{dumpsetup}) { $config{srdir}=$config{destdir}=""; + $config{syslog}=1 if $config{setupsyslog}; require IkiWiki::Setup; IkiWiki::Setup::dump($config{dumpsetup}); }