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)
|
||||
echo "Customize MISP | Creating organizations ..."
|
||||
add_organization nuTAU true
|
||||
add_organization CBTAU true
|
||||
add_organization T-Rex true
|
||||
add_organization NDR true
|
||||
add_organization MDR true
|
||||
SPLITTED_ORGS=$(echo $ORGANIZATIONS | tr ',' '\n')
|
||||
for ORG in $SPLITTED_ORGS
|
||||
do
|
||||
echo "Adding organization: $ORG"
|
||||
add_organization $ORG true
|
||||
done
|
||||
|
||||
|
||||
# Create sync servers
|
||||
for ID in $SYNCSERVERS; do
|
||||
|
|
|
@ -19,3 +19,6 @@ SMARTHOST_PORT=
|
|||
SMARTHOST_USER=
|
||||
SMARTHOST_PASSWORD=
|
||||
SMARTHOST_ALIASES=
|
||||
|
||||
# comma separated list of organizations to create (e.g ORGANIZATIONS="ORG1, ORG2, ORG3")
|
||||
ORGANIZATIONS=
|
||||
|
|
Loading…
Reference in New Issue