remove owner as a vm variable

This commit is contained in:
mischa 2023-05-05 23:04:03 +02:00
parent 06544efdfc
commit 3481b7e31a
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
#!/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
# purpose with or without fee is hereby granted, provided that the above
@ -74,7 +74,7 @@ sub remove_accounts {
printf "userdel(8) user:\n";
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'};
my $_owner = $vms{$vm_name}{'username'};
my $_group = $conf{'conf'}{'VMDUSERS'};
my $id = getpwnam("$_owner");