mirror of
https://github.com/webmin/webmin.git
synced 2026-02-03 14:13:29 +00:00
Only make changed NIS table
This commit is contained in:
@@ -310,6 +310,12 @@ splice(@$lref, $_[0]->{'line'}, $_[0]->{'eline'} - $_[0]->{'line'} + 1, @n);
|
||||
# the NIS server
|
||||
sub apply_table_changes
|
||||
{
|
||||
if ($0 =~ /save_(\S+).cgi/) {
|
||||
# Try to make just one table
|
||||
local $table = $1;
|
||||
local $ex = &system_logged("(cd /var/yp ; /usr/ccs/bin/make $table) >/dev/null 2>&1 </dev/null");
|
||||
return if (!$ex);
|
||||
}
|
||||
&system_logged("(cd /var/yp ; /usr/ccs/bin/make) >/dev/null 2>&1 </dev/null");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user