diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2007-10-25 23:12:23 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2007-10-25 23:12:23 -0400 |
commit | 1e1e1f504609f97cad70d5dca964f8fb3cdfecaa (patch) | |
tree | 65768346a1d7f35fb3d39322ac4e58fd68b1aa94 /ikiwiki-mass-rebuild | |
parent | 11968615dfad0a9564d66d801aa2921a7613602b (diff) |
* ikiwiki-mass-rebuild: Patch from HenrikBrixAndersen to fix order
* ikiwiki-mass-rebuild: Don't clear PATH from the environment.
Diffstat (limited to 'ikiwiki-mass-rebuild')
-rwxr-xr-x | ikiwiki-mass-rebuild | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ikiwiki-mass-rebuild b/ikiwiki-mass-rebuild index fa8bd913d..1ec90b3c0 100755 --- a/ikiwiki-mass-rebuild +++ b/ikiwiki-mass-rebuild @@ -27,8 +27,10 @@ sub processline { if ($< != $uuid || $> != $uuid || $( != $ugid || $) ne "$ugid $ugid") { die "failed to drop permissions to $user"; } - %ENV=(); - $ENV{HOME}=(getpwnam($user))[7]; + %ENV=( + PATH => $ENV{PATH}, + HOME => (getpwnam($user))[7], + ); exec("ikiwiki", "-setup", $setup, @ARGV); die "failed to run ikiwiki: $!"; } |