diff options
author | Joey Hess <joey@kitenet.net> | 2007-11-27 16:46:02 -0500 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2007-11-27 16:46:02 -0500 |
commit | 91fe16f35ccbf2517f9ec320b836f5e0f100a693 (patch) | |
tree | 33eb72b403a330ce9dcb5a0fe9f355e3b599c23d | |
parent | c3805557f183a9ad628b58a06e64269a4982f6d6 (diff) | |
download | ikiwiki-91fe16f35ccbf2517f9ec320b836f5e0f100a693.tar ikiwiki-91fe16f35ccbf2517f9ec320b836f5e0f100a693.tar.gz |
* Add umask configuration option. Closes: #443329
-rw-r--r-- | IkiWiki.pm | 4 | ||||
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | doc/ikiwiki.setup | 2 |
3 files changed, 7 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index c078a0055..d64f4e688 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -141,6 +141,10 @@ sub checkconfig () { #{{{ require IkiWiki::Rcs::Stub; } + if (exists $config{umask}) { + umask(possibly_foolish_untaint($config{umask})); + } + run_hooks(checkconfig => sub { shift->() }); return 1; diff --git a/debian/changelog b/debian/changelog index fe93e036c..6f0e22da6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -10,6 +10,7 @@ ikiwiki (2.15) UNRELEASED; urgency=low reproduced them), just catch a failure of markdown, and retry. (The crazy perl bug magically disappears on the retry.) Closes: #449379 + * Add umask configuration option. Closes: #443329 -- Joey Hess <joeyh@debian.org> Tue, 27 Nov 2007 00:16:40 -0500 diff --git a/doc/ikiwiki.setup b/doc/ikiwiki.setup index d7c54d5e0..1377315ae 100644 --- a/doc/ikiwiki.setup +++ b/doc/ikiwiki.setup @@ -118,6 +118,8 @@ use IkiWiki::Setup::Standard { #usedirs => 0, # Simple spam prevention: require an account-creation password. #account_creation_password => "example", + # Uncomment to force ikiwiki to run with a particular umask. + #umask => 022 # To add plugins, list them here. #add_plugins => [qw{goodstuff search wikitext camelcase |