ENV can be used in the setup file to override environment variable setting, such as TZ or PATH.
parent
c7b1eb242f
commit
0438de905b
|
@ -103,6 +103,12 @@ sub checkconfig () { #{{{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (ref $config{ENV} eq 'HASH') {
|
||||||
|
foreach my $val (keys %{$config{ENV}}) {
|
||||||
|
$ENV{$val}=$config{ENV}{$val};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($config{w3mmode}) {
|
if ($config{w3mmode}) {
|
||||||
eval q{use Cwd q{abs_path}};
|
eval q{use Cwd q{abs_path}};
|
||||||
error($@) if $@;
|
error($@) if $@;
|
||||||
|
|
|
@ -11,6 +11,8 @@ ikiwiki (2.47) UNRELEASED; urgency=low
|
||||||
it just expanded to nothing.
|
it just expanded to nothing.
|
||||||
* git: Skip over signed-off-by and similar lines in commit messages
|
* git: Skip over signed-off-by and similar lines in commit messages
|
||||||
when generating recentchanges.
|
when generating recentchanges.
|
||||||
|
* ENV can be used in the setup file to override environment variable
|
||||||
|
setting, such as TZ or PATH.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Tue, 13 May 2008 12:30:18 -0400
|
-- Joey Hess <joeyh@debian.org> Tue, 13 May 2008 12:30:18 -0400
|
||||||
|
|
||||||
|
|
|
@ -144,6 +144,12 @@ use IkiWiki::Setup::Standard {
|
||||||
# To add a directory to the perl search path, use this.
|
# To add a directory to the perl search path, use this.
|
||||||
#libdir => "/home/me/.ikiwiki/",
|
#libdir => "/home/me/.ikiwiki/",
|
||||||
|
|
||||||
|
# To override environment variable settings, you can list values here.
|
||||||
|
#ENV => {
|
||||||
|
# TZ => "America/New_York",
|
||||||
|
# PATH => "/home/me/bin:/usr/local/bin:/usr/bin:/bin",
|
||||||
|
#},
|
||||||
|
|
||||||
# For use with the tag plugin, make all tags be located under a
|
# For use with the tag plugin, make all tags be located under a
|
||||||
# base page.
|
# base page.
|
||||||
#tagbase => "tag",
|
#tagbase => "tag",
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
It would be nice if the sure could set the timezone of the wiki, and have ikiwiki render the pages with that timezone.
|
It would be nice if the sure could set the timezone of the wiki, and have ikiwiki render the pages with that timezone.
|
||||||
|
|
||||||
This is nice for shared hosting, and other situation where the user doesn't have control over the server timezone.
|
This is nice for shared hosting, and other situation where the user doesn't have control over the server timezone.
|
||||||
|
|
||||||
|
> [[done]] via the ENV setting in the setup file. --[[Joey]]
|
||||||
|
|
Loading…
Reference in New Issue