Files
intelmq-docker/.docker/intelmq-full-dev/update
2021-03-23 10:08:27 -03:00

10 lines
429 B
Bash

#!/bin/bash
cp -a /mybots/bots/* /opt/intelmq/dev_intelmq/intelmq/bots/
cd /opt/dev_intelmq && pip3 install -e .
echo "Install requirements for bots in dev repository"
for file in $(find /intelmq-bots/ -name "*REQUIREMENTS.txt"); do pip3 install -r $file; done
chown -R intelmq:intelmq /opt/intelmq/
chown -R intelmq.www-data /opt/intelmq/etc/;
chmod -R g+w /opt/intelmq
su - intelmq -s /bin/bash -c 'intelmqctl upgrade-config'