Skip to content

Commit

Permalink
install.sh: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
siko1056 committed Oct 15, 2024
1 parent d5e7f9e commit 6a5a8c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ function get_docker_entrypoint()
# User is resolved during installation.
# Entrypoint is executed inside running container.
groupadd -g $(id -g) -f $(id -gn)
useradd -g $(id -g) -u $(id -u) -G sudo $(id -un)
groupadd -g $(id -g) $(id -gn) 2> /dev/null || groupmod -n $(id -gn) ubuntu
useradd -g $(id -g) -u $(id -u) -G sudo $(id -un) 2> /dev/null || usermod -l $(id -un) ubuntu
echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
CMD=\${1##*/}
shift
Expand Down

0 comments on commit 6a5a8c8

Please sign in to comment.