$config_file = "$pwd/$ARGV[0]";
}
%config = &read_config_file($config_file);
+if ($config{'perllib'}) {
+ push(@INC, split(/:/, $config{'perllib'}));
+ $ENV{'PERLLIB'} .= ':'.$config{'perllib'};
+ }
# Check is SSL is enabled and available
if ($config{'ssl'}) {
$envpath = $ENV{"PATH"};
$envlang = $ENV{"LANG"};
$envroot = $ENV{"SystemRoot"};
+ $envperllib = $ENV{'PERLLIB'};
foreach my $k (keys %ENV) {
delete($ENV{$k});
}
$ENV{"USER"} = $envuser if ($envuser);
$ENV{"OLD_LANG"} = $envlang if ($envlang);
$ENV{"SystemRoot"} = $envroot if ($envroot);
+ $ENV{'PERLLIB'} = $envperllib if ($envperllib);
$ENV{"HOME"} = $user_homedir;
$ENV{"SERVER_SOFTWARE"} = $config{"server"};
$ENV{"SERVER_NAME"} = $host;
---- Changes since 1.450 ----
Added a field for allowed SSL cipher types.
Expired passwords can now be changed using an external command, instead of PAM or directly updating /etc/shadow. This is set on the Authentication page.
+---- Changes since 1.470 ----
+Added a field to the Operating System and Environment page for additional Perl module directories.
$miniserv{'env_'.$n} = $in{"value_$i"}
if ($n ne "WEBMIN_CONFIG" && $n ne "WEBMIN_VAR");
}
+$miniserv{'perllib'} = join(':', split(/\r?\n/, $in{'perllib'}));
&put_usermin_miniserv_config(\%miniserv);
&unlock_file($usermin_miniserv_config);
&restart_usermin_miniserv();
5, 30));
}
+# Perl search path
+print &ui_table_row($text{'os_perllib'},
+ &ui_textarea("perllib",
+ join("\n", split(":", $miniserv{'perllib'})), 3, 30));
+
# Global environment variables
-&get_miniserv_config(\%miniserv);
$atable = &ui_columns_start([ $text{'os_name'},
$text{'os_value'} ]);
$i = 0;
Expired Unix passwords can now be changed using an external command, instead of PAM or directly updating /etc/shadow. This is set on the Authentication page.
---- Changes since 1.460 ----
Detect and ignore failures when checking if other modules are installed.
+---- Changes since 1.470 ----
+Added a field to the Operating System and Environment page for additional Perl module directories.
$miniserv{'env_'.$n} = $in{"value_$i"}
if ($n ne "WEBMIN_CONFIG" && $n ne "WEBMIN_VAR");
}
+$miniserv{'perllib'} = join(':', split(/\r?\n/, $in{'perllib'}));
&put_miniserv_config(\%miniserv);
&unlock_file($ENV{'MINISERV_CONFIG'});
require './webmin-lib.pl';
&ui_print_header(undef, $text{'os_title'}, "");
+&get_miniserv_config(\%miniserv);
print $text{'os_desc3'},"<br>\n";
print $text{'os_desc2'},"<p>\n";
5, 30));
}
+# Perl search path
+print &ui_table_row($text{'os_perllib'},
+ &ui_textarea("perllib",
+ join("\n", split(":", $miniserv{'perllib'})), 3, 30));
+
# Global environment variables
-&get_miniserv_config(\%miniserv);
$atable = &ui_columns_start([ $text{'os_name'}, $text{'os_value'} ]);
$i = 0;
foreach $e (keys %miniserv) {
os_path=Program search path
os_syspath=Include system's own search path?
os_ld_path=Library search path
+os_perllib=Extra Perl library paths
os_envs=Additional environment variables
os_name=Variable name
os_value=Value