adduser --gecos is universal not --comment

This commit is contained in:
Earl Warren 2023-12-19 18:06:45 +01:00
parent c7106eb215
commit 82e6d3ec27
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -20,7 +20,7 @@ function ensure_user() {
local user=$1
dependencies
adduser --quiet --comment $user --disabled-password $user
adduser --quiet --gecos $user --disabled-password $user
adduser $user sudo
adduser $user docker
sed -i -e 's/^%sudo.*/%sudo ALL=(ALL:ALL) NOPASSWD:ALL/' /etc/sudoers