mirror of https://github.com/MISP/misp-docker
Simplify workers entrypoint
parent
99ab81621d
commit
0170dc6427
|
@ -1,13 +1,4 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
|
||||||
|
|
||||||
NC='\033[0m' # No Color
|
|
||||||
Light_Green='\033[1;32m'
|
|
||||||
echo (){
|
|
||||||
command echo -e "$1"
|
|
||||||
}
|
|
||||||
|
|
||||||
STARTMSG="${Light_Green}[ENTRYPOINT_WORKERS]${NC}"
|
|
||||||
|
|
||||||
# Wait until entrypoint apache is ready
|
# Wait until entrypoint apache is ready
|
||||||
while (true)
|
while (true)
|
||||||
|
@ -17,16 +8,10 @@ do
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# start Workers for MISP
|
|
||||||
echo "$STARTMSG Start Workers..."
|
|
||||||
sudo -u www-data /var/www/MISP/app/Console/worker/start.sh
|
|
||||||
echo "$STARTMSG Start Workers...finished"
|
|
||||||
|
|
||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
sleep 3600
|
echo "Start Workers..."
|
||||||
echo "$STARTMSG Start Workers..."
|
|
||||||
sudo -u www-data /var/www/MISP/app/Console/worker/start.sh
|
sudo -u www-data /var/www/MISP/app/Console/worker/start.sh
|
||||||
echo "$STARTMSG Start Workers...finished"
|
echo "Start Workers...finished"
|
||||||
|
sleep 3600
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in New Issue