mirror of https://github.com/MISP/misp-docker
Add ability to specify new organizations that needs to be register at startup time (#5)
Signed-off-by: Sebastiano Mariani <smariani@vmware.com>pull/1/head
parent
0d7823c141
commit
54705719de
|
@ -232,11 +232,13 @@ echo "Customize MISP | Configure plugins ..." && configure_plugins
|
||||||
|
|
||||||
# Create organizations (and silently fail if present already)
|
# Create organizations (and silently fail if present already)
|
||||||
echo "Customize MISP | Creating organizations ..."
|
echo "Customize MISP | Creating organizations ..."
|
||||||
add_organization nuTAU true
|
SPLITTED_ORGS=$(echo $ORGANIZATIONS | tr ',' '\n')
|
||||||
add_organization CBTAU true
|
for ORG in $SPLITTED_ORGS
|
||||||
add_organization T-Rex true
|
do
|
||||||
add_organization NDR true
|
echo "Adding organization: $ORG"
|
||||||
add_organization MDR true
|
add_organization $ORG true
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
# Create sync servers
|
# Create sync servers
|
||||||
for ID in $SYNCSERVERS; do
|
for ID in $SYNCSERVERS; do
|
||||||
|
|
|
@ -19,3 +19,6 @@ SMARTHOST_PORT=
|
||||||
SMARTHOST_USER=
|
SMARTHOST_USER=
|
||||||
SMARTHOST_PASSWORD=
|
SMARTHOST_PASSWORD=
|
||||||
SMARTHOST_ALIASES=
|
SMARTHOST_ALIASES=
|
||||||
|
|
||||||
|
# comma separated list of organizations to create (e.g ORGANIZATIONS="ORG1, ORG2, ORG3")
|
||||||
|
ORGANIZATIONS=
|
||||||
|
|
Loading…
Reference in New Issue