remove owner as a vm variable
This commit is contained in:
parent
06544efdfc
commit
3481b7e31a
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/env perl
|
#!/usr/bin/env perl
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019-2021 Mischa Peters <mischa @ openbsd.amsterdam>
|
# Copyright (c) 2019-2023 Mischa Peters <mischa @ openbsd.amsterdam>
|
||||||
#
|
#
|
||||||
# Permission to use, copy, modify, and distribute this software for any
|
# Permission to use, copy, modify, and distribute this software for any
|
||||||
# purpose with or without fee is hereby granted, provided that the above
|
# purpose with or without fee is hereby granted, provided that the above
|
||||||
@ -74,7 +74,7 @@ sub remove_accounts {
|
|||||||
printf "userdel(8) user:\n";
|
printf "userdel(8) user:\n";
|
||||||
for my $vm_name (sort keys %vms) {
|
for my $vm_name (sort keys %vms) {
|
||||||
my $_instance = $vms{$vm_name}{'instance'} || $vm_name;
|
my $_instance = $vms{$vm_name}{'instance'} || $vm_name;
|
||||||
my $_owner = $vms{$vm_name}{'owner'} || $vms{$vm_name}{'username'};
|
my $_owner = $vms{$vm_name}{'username'};
|
||||||
my $_group = $conf{'conf'}{'VMDUSERS'};
|
my $_group = $conf{'conf'}{'VMDUSERS'};
|
||||||
my $id = getpwnam("$_owner");
|
my $id = getpwnam("$_owner");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user