Skip to content

Commit

Permalink
Merge pull request #86 from jammsen/develop
Browse files Browse the repository at this point in the history
Changed default security check
  • Loading branch information
jammsen authored Jan 26, 2024
2 parents fee0ab7 + f8dd946 commit d31a093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions servermanager.sh
Original file line number Diff line number Diff line change
Expand Up @@ -329,11 +329,11 @@ function startServer() {

function checkForDefaultCredentials() {
echo ">>> Checking for existence of default credentials"
if [ ${ADMIN_PASSWORD} == "adminPasswordHere" ]; then
if [[ -n $ADMIN_PASSWORD ]] && [[ $ADMIN_PASSWORD == "adminPasswordHere" ]]; then
echo ">>> Error: Security thread detected: Please change the default admin password. Aborting server start ..."
exit 1
fi
if [ ${SERVER_PASSWORD} == "serverPasswordHere" ]; then
if [[ -n $SERVER_PASSWORD ]] && [[ $SERVER_PASSWORD == "serverPasswordHere" ]]; then
echo ">>> Error: Security thread detected: Please change the default server password. Aborting server start ..."
exit 1
fi
Expand Down

0 comments on commit d31a093

Please sign in to comment.