Skip to content

Commit

Permalink
use portable id to get user
Browse files Browse the repository at this point in the history
  • Loading branch information
nyxnor committed Dec 11, 2022
1 parent d638bbf commit 90b54c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/bin/installer-dist
Expand Up @@ -1014,8 +1014,8 @@ install_package_debian_common(){
## End installation of VirtualBox on Debian and derived systems.
install_virtualbox_debian_common_end(){
has vboxmanage || die 1 "Failed to locate 'vboxmanage' program."
log_run "root_cmd adduser ${USER} vboxusers" || {
die 1 "Failed to add user '${USER}' to group 'vboxusers'."
log_run "root_cmd adduser $(id -nu) vboxusers" || {
die 1 "Failed to add user '$(id -nu)' to group 'vboxusers'."
}
}

Expand Down

0 comments on commit 90b54c9

Please sign in to comment.