[fix] so-user spelling+syntax fixes

* Consistent ending punctuation
* Consistent capitalization
* Correct comparison operators
This commit is contained in:
William Wernert
2020-10-15 13:44:23 -04:00
parent 35b10b1f91
commit 1fdf431c12
5 changed files with 13 additions and 13 deletions

View File

@@ -48,7 +48,7 @@ fi
FLEET_HASH=$(docker exec so-soctopus python -c "import bcrypt; print(bcrypt.hashpw('$FLEET_PASS'.encode('utf-8'), bcrypt.gensalt()).decode('utf-8'));" 2>&1)
if [[ $? -ne 0 ]]; then
echo "Failed to generate Fleet password hash."
echo "Failed to generate Fleet password hash"
exit 2
fi
@@ -56,9 +56,9 @@ MYSQL_OUTPUT=$(docker exec so-mysql mysql -u root --password=$MYSQL_PASS fleet -
"INSERT INTO users (password,salt,username,email,admin,enabled) VALUES ('$FLEET_HASH','','$FLEET_USER','$FLEET_USER',1,1)" 2>&1)
if [[ $? -eq 0 ]]; then
echo "Successfully added user to Fleet."
echo "Successfully added user to Fleet"
else
echo "Unable to add user to Fleet; user might already exist."
echo "Unable to add user to Fleet; user might already exist"
echo $resp
exit 2
fi