mirror of
https://github.com/webmin/webmin.git
synced 2026-06-09 22:40:23 +01:00
*Note: Removes Kea-specific ACL wrapper helpers and switches ACL editor/runtime checks to standard Webmin handling with direct supplied ACL values and get_module_acl checks.
18 lines
476 B
Perl
Executable File
18 lines
476 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# Restart Kea services.
|
|
|
|
use strict;
|
|
use warnings;
|
|
require './kea-dhcp-lib.pl'; ## no critic
|
|
our %text;
|
|
&error_setup($text{'eacl_aviol'});
|
|
my %access = &get_module_acl();
|
|
&error("$text{'eacl_np'} $text{'eacl_papply'}") if (!$access{'apply'});
|
|
|
|
# Restart/reload applies the saved configuration for all Kea services.
|
|
&error_setup($text{'restart_fail'});
|
|
my $err = &kea_run_action('restart');
|
|
&error($err) if ($err);
|
|
&webmin_log("apply");
|
|
&redirect("");
|