From a2776e64f6646812e8a15e71b4d9f7034df729ef Mon Sep 17 00:00:00 2001 From: "R. Miles McCain" Date: Tue, 7 Jul 2020 00:18:24 +0000 Subject: [PATCH] Rename from "sanity results" to "startup results" --- shynet/startup_checks.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/shynet/startup_checks.sh b/shynet/startup_checks.sh index be4201f..17ce05b 100755 --- a/shynet/startup_checks.sh +++ b/shynet/startup_checks.sh @@ -1,8 +1,8 @@ #!/bin/bash # Check if setup is necessary, do setup as needed echo "Performing startup checks..." -sanity_results=( $(./manage.py startup_checks) ) -if [[ ${sanity_results[0]} == True ]]; then +startup_results=( $(./manage.py startup_checks) ) +if [[ ${startup_results[0]} == True ]]; then echo "Running migrations (setting up DB)..." { ./manage.py migrate && echo "Migrations complete!" @@ -12,13 +12,13 @@ if [[ ${sanity_results[0]} == True ]]; then else echo "Database is ready to go." fi -if [[ ${sanity_results[1]} == True ]]; then +if [[ ${startup_results[1]} == True ]]; then echo "Warning: no admin user available. Consult docs for instructions." fi -if [[ ${sanity_results[2]} == True ]]; then +if [[ ${startup_results[2]} == True ]]; then echo "Warning: Shynet's hostname is not set. The script won't work correctly. Consult docs for instructions." fi -if [[ ${sanity_results[3]} == True ]]; then +if [[ ${startup_results[3]} == True ]]; then echo "Warning: Shynet's whitelabel is not set. Consult docs for instructions." fi echo "Startup checks complete!"