Update create-user.sh

This commit is contained in:
2025-07-03 18:26:33 +00:00
parent 80fdf28139
commit 99c9d6bce5

View File

@@ -17,6 +17,9 @@ fi
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
if id "$USERNAME" &>/dev/null; then
echo "[*] User '$USERNAME' already exists. Skipping creation."