mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
Do not activate the python venv, everytime you execute daemon tasks
This commit is contained in:
parent
ba7789224b
commit
b606710edf
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user