* Add umask configuration option. Closes: #443329

master
Joey Hess 2007-11-27 16:46:02 -05:00
parent c3805557f1
commit 91fe16f35c
3 changed files with 7 additions and 0 deletions

View File

@ -141,6 +141,10 @@ sub checkconfig () { #{{{
require IkiWiki::Rcs::Stub; require IkiWiki::Rcs::Stub;
} }
if (exists $config{umask}) {
umask(possibly_foolish_untaint($config{umask}));
}
run_hooks(checkconfig => sub { shift->() }); run_hooks(checkconfig => sub { shift->() });
return 1; return 1;

1
debian/changelog vendored
View File

@ -10,6 +10,7 @@ ikiwiki (2.15) UNRELEASED; urgency=low
reproduced them), just catch a failure of markdown, and retry. reproduced them), just catch a failure of markdown, and retry.
(The crazy perl bug magically disappears on the retry.) (The crazy perl bug magically disappears on the retry.)
Closes: #449379 Closes: #449379
* Add umask configuration option. Closes: #443329
-- Joey Hess <joeyh@debian.org> Tue, 27 Nov 2007 00:16:40 -0500 -- Joey Hess <joeyh@debian.org> Tue, 27 Nov 2007 00:16:40 -0500

View File

@ -118,6 +118,8 @@ use IkiWiki::Setup::Standard {
#usedirs => 0, #usedirs => 0,
# Simple spam prevention: require an account-creation password. # Simple spam prevention: require an account-creation password.
#account_creation_password => "example", #account_creation_password => "example",
# Uncomment to force ikiwiki to run with a particular umask.
#umask => 022
# To add plugins, list them here. # To add plugins, list them here.
#add_plugins => [qw{goodstuff search wikitext camelcase #add_plugins => [qw{goodstuff search wikitext camelcase