Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed default security check #86

Merged
merged 3 commits into from
Jan 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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