Do not activate the python venv, everytime you execute daemon tasks

This commit is contained in:
Patrick Jentsch 2020-11-19 12:29:40 +01:00
parent ba7789224b
commit b606710edf
2 changed files with 4 additions and 3 deletions

View File

@ -1,12 +1,12 @@
#!/bin/bash #!/bin/bash
source venv/bin/activate
if [[ "${NOPAQUE_DAEMON_ENABLED}" == "True" ]]; then if [[ "${NOPAQUE_DAEMON_ENABLED}" == "True" ]]; then
echo "INFO Starting nopaque daemon process..." echo "INFO Starting nopaque daemon process..."
./nopaque-daemon.sh & ./nopaque-daemon.sh &
fi fi
source venv/bin/activate
if [[ "${#}" -eq 0 ]]; then if [[ "${#}" -eq 0 ]]; then
while true; do while true; do
flask deploy flask deploy

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
source venv/bin/activate
# The nopaque daemon is essentially just a loop in which the daemon tasks are
# periodically executed
while true; do while true; do
flask tasks flask tasks
sleep 10 sleep 10