Update create-user.sh
This commit is contained in:
@@ -17,6 +17,9 @@ fi
|
|||||||
|
|
||||||
read -p "Comma-separated groups to add (e.g. sudo,docker): " GROUPS
|
read -p "Comma-separated groups to add (e.g. sudo,docker): " GROUPS
|
||||||
|
|
||||||
|
# DEBUG LINE
|
||||||
|
echo "[DEBUG] Raw GROUPS value: '$GROUPS'"
|
||||||
|
|
||||||
# Create the user if not exists
|
# Create the user if not exists
|
||||||
if id "$USERNAME" &>/dev/null; then
|
if id "$USERNAME" &>/dev/null; then
|
||||||
echo "[*] User '$USERNAME' already exists. Skipping creation."
|
echo "[*] User '$USERNAME' already exists. Skipping creation."
|
||||||
|
|||||||
Reference in New Issue
Block a user