mirror of
				https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
				synced 2025-11-03 20:02:47 +00:00 
			
		
		
		
	Do not activate the python venv, everytime you execute daemon tasks
This commit is contained in:
		@@ -1,12 +1,12 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
source venv/bin/activate
 | 
			
		||||
 | 
			
		||||
if [[ "${NOPAQUE_DAEMON_ENABLED}" == "True" ]]; then
 | 
			
		||||
    echo "INFO  Starting nopaque daemon process..."
 | 
			
		||||
    ./nopaque-daemon.sh &
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
source venv/bin/activate
 | 
			
		||||
 | 
			
		||||
if [[ "${#}" -eq 0 ]]; then
 | 
			
		||||
    while true; do
 | 
			
		||||
        flask deploy
 | 
			
		||||
 
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
#!/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
 | 
			
		||||
    flask tasks
 | 
			
		||||
    sleep 10
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user