fix some quotes

This commit is contained in:
paukstelis
2022-06-11 13:04:34 -04:00
parent 5356884582
commit d9efcb48cb

View File

@@ -824,19 +824,18 @@ firstrun() {
if prompt_confirm "Do you want to setup your admin user now?"; then if prompt_confirm "Do you want to setup your admin user now?"; then
echo 'Enter admin user name (no spaces): ' echo 'Enter admin user name (no spaces): '
read OCTOADMIN read OCTOADMIN
if [ -z OCTOADMIN ]; then if [ -z "$OCTOADMIN" ]; then
echo -e "No admin user given! Defaulting to: \033[0;31moctoadmin\033[0m" echo -e "No admin user given! Defaulting to: \033[0;31moctoadmin\033[0m"
OCTOADMIN=octoadmin OCTOADMIN=octoadmin
fi fi
echo 'Admin user: $OCTOADMIN' echo "Admin user: $OCTOADMIN"
echo 'Enter admin user password (no spaces): ' echo 'Enter admin user password (no spaces): '
read OCTOPASS read OCTOPASS
if [ -z OCTOPASS ]; then if [ -z OCTOPASS ]; then
echo -e "No password given! Defaulting to: \033[0;31mfooselrulz\033[0m. Please CHANGE this." echo -e "No password given! Defaulting to: \033[0;31mfooselrulz\033[0m. Please CHANGE this."
OCTOPASS=fooselrulz OCTOPASS=fooselrulz
fi fi
echo 'Admin password: $OCTOPASS' echo "Admin password: $OCTOPASS"
echo 'Admin user added!'
$OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin $OCTOEXEC user add $OCTOADMIN --password $OCTOPASS --admin
fi fi