summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Skyttä <ville.skytta@iki.fi>2011-11-13 12:03:00 +0200
committerVille Skyttä <ville.skytta@iki.fi>2011-11-13 12:03:00 +0200
commitb1946049bd5e38a3df3ae8b16c62d6ba91ee1637 (patch)
tree29222c85e5b218b8832efe4b2af439e111e60f87
parente7a82bd789549c141af4552b968ec2365baee7bd (diff)
downloadvdradmin-am-b1946049bd5e38a3df3ae8b16c62d6ba91ee1637.tar.gz
vdradmin-am-b1946049bd5e38a3df3ae8b16c62d6ba91ee1637.tar.bz2
Don't require the Env module.
-rwxr-xr-xinstall.sh1
-rwxr-xr-xvdradmind.pl3
2 files changed, 1 insertions, 3 deletions
diff --git a/install.sh b/install.sh
index 12d889e..f58573b 100755
--- a/install.sh
+++ b/install.sh
@@ -77,7 +77,6 @@ function perlModules()
echo ""
echo "*** Required ***"
checkPerlModule locale
- checkPerlModule Env
checkPerlModule Template
checkPerlModule Template::Plugin::JavaScript
checkPerlModule CGI
diff --git a/vdradmind.pl b/vdradmind.pl
index 0564b53..696ccf2 100755
--- a/vdradmind.pl
+++ b/vdradmind.pl
@@ -61,7 +61,6 @@ if ($@) {
require File::Temp;
use locale;
-use Env qw(@PATH LANGUAGE LANG);
use CGI qw(:no_debug);
use HTTP::Date qw(time2str);
use IO::Socket;
@@ -87,7 +86,7 @@ $can_use_smtpauth = undef unless (eval { require Authen::SASL });
# Some users have problems if the LANGUAGE env variable is set
# so it's cleared here.
-$LANGUAGE = "";
+$ENV{LANGUAGE} = "";
$SIG{CHLD} = sub { wait };