mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 02:44:18 +00:00
23 lines
451 B
Bash
Executable File
23 lines
451 B
Bash
Executable File
#!/bin/bash
|
|
source venv/bin/activate
|
|
if [[ "$#" -eq 0 ]]; then
|
|
while true; do
|
|
flask deploy
|
|
if [[ "$?" == "0" ]]; then
|
|
break
|
|
fi
|
|
echo Deploy command failed, retrying in 5 secs...
|
|
sleep 5
|
|
done
|
|
python nopaque.py
|
|
elif [[ "$1" == "flask" ]]; then
|
|
exec ${@:1}
|
|
else
|
|
echo "$0 [COMMAND]"
|
|
echo ""
|
|
echo "nopaque startup script"
|
|
echo ""
|
|
echo "Commands:"
|
|
echo " flask"
|
|
fi
|