mirror of https://github.com/MISP/misp-docker
Merge pull request #3 from dlee35/master
Additional arg for misp-module and changed user in supervisord.conf
commit
a5ebabfbbc
|
@ -137,7 +137,7 @@ RUN pip3 install --upgrade --ignore-installed urllib3
|
|||
RUN pip3 install --upgrade --ignore-installed requests
|
||||
RUN pip3 install -I -r REQUIREMENTS
|
||||
RUN pip3 install -I .
|
||||
RUN echo "sudo -u www-data misp-modules -s &" >>/etc/rc.local
|
||||
RUN echo "sudo -u www-data misp-modules -s -l 127.0.0.1 &" >>/etc/rc.local
|
||||
|
||||
# Supervisord Setup
|
||||
RUN echo '[supervisord]' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
|
@ -163,8 +163,8 @@ RUN echo 'startsecs = 0' >> /etc/supervisor/conf.d/supervisord.conf
|
|||
RUN echo 'autorestart = false' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo '' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo '[program:misp-modules]' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo 'command=/bin/bash -c "cd /opt/misp-modules/bin && /usr/bin/python3 misp-modules.py"' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo 'user = root' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo 'command=/bin/bash -c "misp-modules -s -l 127.0.0.1"' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo 'user = www-data' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo 'startsecs = 0' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
RUN echo 'autorestart = false' >> /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
|
|
Loading…
Reference in New Issue