From: <mp...@kr...> - 2013-02-12 16:12:17
|
Revision: 6900 Author: mpeters Date: 2013-02-12 10:45:30 -0500 (Tue, 12 Feb 2013) Log Message: ----------- tell sudo to keep the current environment so that things like perlbrew can be used with krang Modified Paths: -------------- trunk/krang/bin/krang_ctl Modified: trunk/krang/bin/krang_ctl =================================================================== --- trunk/krang/bin/krang_ctl 2012-12-11 20:47:47 UTC (rev 6899) +++ trunk/krang/bin/krang_ctl 2013-02-12 15:45:30 UTC (rev 6900) @@ -103,7 +103,7 @@ # we need sudo if we aren't already root and this service uses a port less than 1024 my $port = $service->{port}; if (($< != 0 || $> != 0) && $port && pkg('Conf')->get($port) <= 1024) { - $script = "sudo $script"; + $script = "sudo -E $script"; } print STDERR "=> krang_ctl calling '$script $command'...\n"; |