ubuntu-server-setup icon indicating copy to clipboard operation
ubuntu-server-setup copied to clipboard

What user should run this?

Open alturic opened this issue 2 years ago • 0 comments

If this should be ran as root, wouldn't this break things in the updateUserAccount function?

if [[ $createUser == [nN] ]]; then
        username=$(whoami)
        updateUserAccount "${username}"
    elif [[ $createUser == [yY] ]]; then
        read -rp "Enter the username of the new user account: " username
        addUserAccount "${username}"
    else
	echo 'This is not a valid choice!'
	exit 1
    fi

alturic avatar Jul 13 '23 19:07 alturic