Skip to content

Commit

Permalink
Code format cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Mar 20, 2024
1 parent dfab3a3 commit 64188fd
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions modify-user.pl
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,8 @@ package virtual_server;
my $pubkey;
my $sshpubkeyfile = -r $sshpubkey ? $sshpubkey : undef;
if ($sshpubkeyfile) {
$pubkey = &get_ssh_pubkey_from_file($sshpubkeyfile, $sshpubkeyid);
$pubkey = &get_ssh_pubkey_from_file(
$sshpubkeyfile, $sshpubkeyid);
}
else {
$pubkey = $sshpubkey;
Expand All @@ -565,11 +566,13 @@ package virtual_server;
&usage($pubkeyerr) if ($pubkeyerr);
my $existing_pubkey = &get_domain_user_ssh_pubkey($d, $olduser);
if ($existing_pubkey) {
&update_domain_user_ssh_pubkey($d, $user, $olduser, $pubkey)
&update_domain_user_ssh_pubkey(
$d, $user, $olduser, $pubkey)
}
else {
my $addpubkey_err = &add_domain_user_ssh_pubkey($d, $user, $pubkey);
&usage($addpubkey_err) if ($addpubkey_err);
my $err = &add_domain_user_ssh_pubkey(
$d, $user, $pubkey);
&usage($err) if ($err);
}
}
# Modify user
Expand Down

0 comments on commit 64188fd

Please sign in to comment.