Files
webmin/kea-dhcp/start.cgi
Ilia Ross 184887d365
Some checks failed
Tests / prove (push) Has been cancelled
Build / build (push) Has been cancelled
Close inactive / close-inactive (push) Has been cancelled
Fix to use direct ACL checks in Kea DHCP module
*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.
2026-05-30 02:53:48 +02:00

18 lines
478 B
Perl
Executable File

#!/usr/local/bin/perl
# Start 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'});
# The header action buttons operate on all configured Kea components together.
&error_setup($text{'start_fail'});
my $err = &kea_run_action('start');
&error($err) if ($err);
&webmin_log("start");
&redirect("");