Commit 35826997 authored by Cooper, Caleb's avatar Cooper, Caleb
Browse files

Update rse-bash-modules.sh

parent 366337de
......@@ -31,11 +31,11 @@ func_rse_make_sudo_account() {
while [[ "$(getent passwd ${NEW_UID})" ]]; do
NEW_UID=$((NEW_UID + 1))
done
if sudo useradd.orig -u ${NEW_UID} -s /bin/bash -m -G wheel ${NEW_ACCOUNT}; then
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
if echo -e "${NEW_PASS}\n${NEW_PASS}" | sudo passwd ${NEW_ACCOUNT}; then
if ! echo -e "${NEW_PASS}\n${NEW_PASS}" | sudo passwd ${NEW_ACCOUNT}; then
echo -e "${NEW_PASS}\n${NEW_PASS}" | sudo passwd.orig ${NEW_ACCOUNT}
fi
}
......
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