Log the apply action

https://github.com/webmin/webmin/issues/2422
This commit is contained in:
Jamie Cameron
2025-02-24 15:29:00 -08:00
parent 9de937612b
commit d54e7217d6
3 changed files with 5 additions and 0 deletions

View File

@ -6,5 +6,6 @@ require './net-lib.pl';
$access{'apply'} || &error($text{'apply_ecannot'});
&apply_network();
sleep(1);
&webmin_log("apply");
&redirect("");

View File

@ -279,6 +279,7 @@ log_create_defroute=Created active default route
log_delete_routes=Deleted $1 active routes
log_delete_aifcs=Deactivated $1 interfaces
log_delete_bifcs=Deleted $1 interfaces
log_apply=Applied boot-time network configuration
acl_ifcs=Can edit network interfaces?
acl_routes=Can edit routing and gateways?

View File

@ -24,6 +24,9 @@ elsif ($action eq 'dns') {
elsif ($action eq 'routes') {
return $text{'log_routes'};
}
elsif ($action eq 'apply') {
return $text{'log_apply'};
}
elsif ($type eq 'aifc' || $type eq 'bifc') {
return &text("log_${action}_${type}", "<tt>$object</tt>",
$p->{'dhcp'} || $p->{'bootp'} ? $text{'log_dyn'} :