Restructure startup procedure

This commit is contained in:
Patrick Jentsch
2023-09-25 10:11:11 +02:00
parent 4a9a03e648
commit 4581367d04
15 changed files with 399 additions and 236 deletions

View File

@ -13,7 +13,7 @@ display_help() {
echo "Run '${script_name} COMMAND --help' for more information on a command."
}
if [[ "${#}" -eq 0 ]]; then
if [[ "${#}" == "0" ]]; then
if [[ "${NOPAQUE_IS_PRIMARY_INSTANCE:-True}" == "True" ]]; then
while true; do
flask deploy
@ -26,7 +26,7 @@ if [[ "${#}" -eq 0 ]]; then
fi
python3 nopaque.py
elif [[ "${1}" == "flask" ]]; then
flask "${@:2}"
flask ${@:2}
elif [[ "${1}" == "--help" || "${1}" == "-h" ]]; then
display_help
else