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
Sebastiano Mariani 2022-11-17 15:15:56 -08:00 committed by GitHub
parent 0d7823c141
commit 54705719de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View File

@ -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

View File

@ -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=