medved/docker/core/files/run.sh
2018-08-04 14:44:27 +03:00

14 lines
442 B
Bash
Executable File

#!/usr/bin/env bash
export CORE_IP=$(host ${CORE_IP} | head -n1 | grep -Po "(\d+\.?){4}")
export MONGO_IP=$(host ${MONGO_IP} | head -n1 | grep -Po "(\d+\.?){4}")
export SELENIUM_IP=$(host ${SELENIUM_IP} | head -n1 | grep -Po "(\d+\.?){4}")
export REDIS_IP=$(host ${REDIS_IP} | head -n1 | grep -Po "(\d+\.?){4}")
/tmp/confd -onetime -backend env
#sudo -u tor tor
#cd /mdvd && proxychains -q python3 medved.py
cd /mdvd && python3 medved.py