fix: run misp-modules and workers as www-data

Luciano Righetti 2022-07-27 14:13:45 +02:00
parent 3cce984b32
commit b1b05107a7
No known key found for this signature in database
GPG Key ID: CB91F2A37C557248
1 changed files with 2 additions and 0 deletions

View File

@ -59,11 +59,13 @@ RUN ( \
echo 'command=/bin/bash /var/www/MISP/app/Console/worker/start.sh'; \
echo 'startsecs = 0'; \
echo 'autorestart = false'; \
echo 'user=www-data'; \
echo ''; \
echo '[program:misp-modules]'; \
echo 'command=/bin/bash -c "/var/www/MISP/venv/bin/misp-modules -l 127.0.0.1 -s"'; \
echo 'startsecs = 0'; \
echo 'autorestart = false'; \
echo 'user=www-data'; \
) >> /etc/supervisor/conf.d/supervisord.conf
# Add run script