mirror of
https://github.com/webmin/webmin.git
synced 2025-08-16 14:51:18 +00:00
12 lines
266 B
Perl
Executable File
12 lines
266 B
Perl
Executable File
#!/usr/local/bin/perl
|
|
# delete_host.cgi
|
|
# Remove a managed host from the list
|
|
|
|
require './cfengine-lib.pl';
|
|
&ReadParse();
|
|
@hosts = &list_cfengine_hosts();
|
|
($host) = grep { $_->{'id'} == $in{'id'} } @hosts;
|
|
&delete_cfengine_host($host);
|
|
&redirect("list_hosts.cgi");
|
|
|