mirror of
https://github.com/webmin/webmin.git
synced 2025-07-20 16:48:46 +00:00
Handle case where there is no system action
https://github.com/webmin/webmin/issues/1542
This commit is contained in:
@ -46,7 +46,7 @@ if (!&init::action_status($debian_init_script)) {
|
||||
# Applies the current iptables configuration from the save file
|
||||
sub apply_iptables
|
||||
{
|
||||
if ($debian_init_script) {
|
||||
if ($debian_init_script && &init::action_status($debian_init_script)) {
|
||||
my ($ok, $err) = &init::restart_action($debian_init_script);
|
||||
return $ok ? undef : &html_escape($err);
|
||||
}
|
||||
|
Reference in New Issue
Block a user