mirror of
https://github.com/webmin/webmin.git
synced 2025-07-21 23:40:34 +00:00
Make error message about bootup action clearer
This commit is contained in:
@ -156,7 +156,7 @@ desc_args--match-set=$2 is contained in IP-set $1
|
||||
desc_src=source
|
||||
desc_dest=destination
|
||||
|
||||
redhat_einstalled=No <tt>iptables(6)</tt> bootup action was found, indicating that the IPtables package is not installed on your system
|
||||
redhat_einstalled2=No <tt>$1</tt> bootup action was found, indicating that the IPtables package is not installed on your system
|
||||
redhat_eoutput=An error occured getting IPtables status from the command $1. This probably indicates that your system has been configured to use IPchains instead of IPtables.
|
||||
|
||||
gentoo_escript=The Gentoo IPtables startup script $1 was not found on your system.
|
||||
|
@ -9,7 +9,8 @@ $init_script = "$init::config{'init_dir'}/ip${ipvx}tables";
|
||||
sub check_iptables
|
||||
{
|
||||
&foreign_require("init");
|
||||
&init::action_status("ip${ipvx}tables") > 0 || return $text{'redhat_einstalled'};
|
||||
&init::action_status("ip${ipvx}tables") > 0 ||
|
||||
return &text('redhat_einstalled2', "ip${ipvx}tables");
|
||||
return undef if ($gconfig{'os_type'} eq 'trustix-linux');
|
||||
return undef if ($gconfig{'os_type'} eq 'redhat-linux' &&
|
||||
$gconfig{'os_version'} > 10);
|
||||
|
Reference in New Issue
Block a user