added -x to pkill for exact match
This commit is contained in:
parent
e71569aace
commit
1372e642b8
|
@ -222,7 +222,7 @@ sub render_doas_conf {
|
|||
for my $vm_name (sort keys %vms) {
|
||||
my $_instance = $vms{$vm_name}{'instance'} || $vm_name;
|
||||
my $_owner = $vms{$vm_name}{'owner'} || $vms{$vm_name}{'username'};
|
||||
printf $fh_doas "permit nopass %s as root cmd pkill args -9 -f %s\n", $_owner, $_instance;
|
||||
printf $fh_doas "permit nopass %s as root cmd pkill args -9 -xf %s\n", $_owner, $_instance;
|
||||
}
|
||||
close $fh_doas;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
date="2019/12/01"
|
||||
date="2018/07/02"
|
||||
payment="70"
|
||||
donated=""
|
||||
name="Test2 User"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
date="2018/05/21"
|
||||
date="2020/07/21"
|
||||
payment="60"
|
||||
donated=""
|
||||
name="Test3"
|
||||
|
|
Loading…
Reference in New Issue