Commit 6986169f authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files

Update rse-bash-modules.sh

parent edc7fb7c
...@@ -30,7 +30,9 @@ func_rse_make_sudo_account() { ...@@ -30,7 +30,9 @@ func_rse_make_sudo_account() {
while [[ "$(getent passwd ${NEW_UID})" ]]; do while [[ "$(getent passwd ${NEW_UID})" ]]; do
NEW_UID=$((NEW_UID + 1)) NEW_UID=$((NEW_UID + 1))
done done
sudo useradd -u ${NEW_UID} -s /bin/bash -m -G wheel ${NEW_ACCOUNT} || true if sudo useradd.orig -u ${NEW_UID} -s /bin/bash -m -G wheel ${NEW_ACCOUNT}; then
sudo useradd -u ${NEW_UID} -s /bin/bash -m -G wheel ${NEW_ACCOUNT}
fi
fi fi
echo -e "${NEW_PASS}\n${NEW_PASS}" | sudo passwd ${NEW_ACCOUNT} echo -e "${NEW_PASS}\n${NEW_PASS}" | sudo passwd ${NEW_ACCOUNT}
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment