* Add umask configuration option. Closes: #443329
authorJoey Hess <joey@kitenet.net>
Tue, 27 Nov 2007 21:46:02 +0000 (16:46 -0500)
committerJoey Hess <joey@kitenet.net>
Tue, 27 Nov 2007 21:46:02 +0000 (16:46 -0500)
IkiWiki.pm
debian/changelog
doc/ikiwiki.setup

index c078a005515c1a3dd7cfd49e8553956b3348da2b..d64f4e688a9a9638be8cb67e490b26dc3d60eb33 100644 (file)
@@ -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;
index fe93e036c1e06af5a5264f8e0a82993c4de0b6ea..6f0e22da6ad5c0bad1f07bf8a0ef558c796bab2e 100644 (file)
@@ -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
 
index d7c54d5e045bfb882a30e2e32a66b6144659d31b..1377315aeba52bc1bc790bb11e8fb379418a3b27 100644 (file)
@@ -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