Skip to content

Commit

Permalink
init: fix id/gid error in group creation
Browse files Browse the repository at this point in the history
  • Loading branch information
89luca89 committed Dec 15, 2021
1 parent cf57135 commit 9fa59dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Distrobox has been successfully tested on:
| Fedora | 34, 35 | |
| Fedora Silverblue | 34, 35 | |
| OpenSUSE | Leap 15, Tumbleweed | |
| Ubuntu | 20.04, 21.10 | Older versions based on 20.04 needs external repos to install newer Podman releases. </br> Derivatives like Pop_OS!, Mint and Elementary OS should work the same. |
| Ubuntu | 20.04, 21.10 | Older versions based on 20.04 needs external repos to install newer Podman and Docker releases. </br> Derivatives like Pop_OS!, Mint and Elementary OS should work the same. |
| EndlessOS | 4.0.0 | |
| OpenSUSE MicroOS | 20211209 | |

Expand Down
2 changes: 1 addition & 1 deletion distrobox-init
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ fi

# If not existing, ensure we have a group for our user.
if ! grep -q "${container_user_name}" /etc/group; then
groupadd --force --gid "${container_user_uid}" "${container_user_name}"
groupadd --force --gid "${container_user_gid}" "${container_user_name}"
fi
# Let's add our user to the container if the user already exists, just go ahead.
if ! id "${container_user_name}"; then
Expand Down

0 comments on commit 9fa59dc

Please sign in to comment.