2
0
mirror of https://github.com/ComradCollective/Comrad synced 2024-11-09 13:10:44 +00:00
Comrad/bin/komrade-op
quadrismegistus 254f0a821a updates
2020-09-14 21:10:31 +01:00

23 lines
384 B
Plaintext
Executable File

##
# Run THE OPERATOR
##
SCRIPTPATH="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
path=`realpath "$SCRIPTPATH/../komrade/backend/switchboard.py"`
pathvenv=`realpath "$SCRIPTPATH/../venv/bin/activate"`
source $pathvenv
cmd="python $path 8080 $*"
# do forever
while true; do $cmd && break; done
if command -v deactivate &> /dev/null
then
deactivate
fi