nopaque/web/boot.sh

25 lines
421 B
Bash
Raw Normal View History

#!/bin/bash
source venv/bin/activate
2020-11-09 15:14:19 +00:00
while true; do
flask deploy
if [[ "$?" == "0" ]]; then
break
fi
echo Deploy command failed, retrying in 5 secs...
sleep 5
done
2020-10-08 21:10:07 +00:00
if [[ "$#" -eq 0 ]]; then
python nopaque.py
elif [[ "$1" == "flask" ]]; then
exec ${@:1}
else
echo "$0 [COMMAND]"
echo ""
echo "nopaque startup script"
echo ""
2020-10-08 21:10:07 +00:00
echo "Commands:"
echo " flask"
fi