539f2eb6c3badfe173022b0f7fc0e05959bdfebd
3 error
=0; trap 'error=$(($?>$error?$?:$error))' ERR
# save maximum error code
6 if [ -n "$ROOTPW" ]; then
7 $ROOTCMD chpasswd
--encrypted <<< "root:${ROOTPW}"
8 elif [ -n "$username" ]; then
9 $ROOTCMD usermod
-L root