mirror of
https://github.com/certat/intelmq-docker.git
synced 2025-12-06 17:22:57 +01:00
21 lines
503 B
Bash
21 lines
503 B
Bash
#!/bin/bash
|
|
export INTELMQ_IS_DOCKER=1
|
|
sudo chown -R intelmq:intelmq /etc/intelmq
|
|
sudo chown -R intelmq:intelmq /opt/intelmq
|
|
|
|
intelmqctl upgrade-config
|
|
intelmqctl check
|
|
|
|
intelmq_user="${INTELMQ_API_USER:=intelmq}"
|
|
intelmq_pass="${INTELMQ_API_PASS:=intelmq}"
|
|
|
|
intelmq-api-adduser --user "$intelmq_user" --password "$intelmq_pass"
|
|
|
|
if [[ $1 == "selftest" ]]
|
|
then
|
|
export INTELMQ_TEST_EXOTIC=1
|
|
nosetests3 /etc/intelmq/intelmq/tests
|
|
else
|
|
cd /etc/intelmq-api && hug -m intelmq_api.serve -p8080
|
|
fi
|