## When are custom initialization scripts invoked?
...
...
@@ -66,85 +66,14 @@ More precisely scripts are executed in the order returned by this command: `ls -
Ths `config-workers.sh` script is provided as part of BCD's core scripts.
In particular it shows how to further configure the server using [Bonita Platform setup tool](https://documentation.bonitasoft.com/bonita/${bonitaDocVersion}/BonitaBPM_platform_setup).
### replace-logo.sh
This sample script replaces the default logo images (login and header logos) in Bonita Portal.
ls-1 WEB-INF/classes/bonita-portal-theme*.zip | xargs -I{}-n1 zip -r{} skin
# repackage war
zip -r"${war_path}""WEB-INF/classes/bonita-portal-theme*.zip"
touch${indicator_path}
```
### activate-all-dynamic-checks.sh
This sample script activates all standard [REST API dynamic authorization rules](https://documentation.bonitasoft.com/bonita/${bonitaDocVersion}/rest-api-authorization) to further secure Bonita REST API. These rules are meant to cover the most frequent cases.
This sample script deploys and registers a Bonita engine Event handler as described in [Event handlers Documentation](https://documentation.bonitasoft.com/bonita/${bonitaDocVersion}/event-handlers).
Assuming the following files:
- roles/bonita/files/custom-init.d/event-handler-example-1.0.0-SNAPSHOT.jar (event handler JAR file)
- roles/bonita/files/custom-init.d/bonita-tenant-sp-custom.xml (tenant configuration file where the event handler is registered)
-`roles/bonita/files/custom-init.d/event-handler-example-1.0.0-SNAPSHOT.jar` (event handler JAR file)
-`roles/bonita/files/custom-init.d/bonita-tenant-sp-custom.xml` (tenant configuration file where the event handler is registered)
Here's a sample `register-event-handler.sh` script:
...
...
@@ -186,6 +115,8 @@ ${BONITA_SETUP_SH} push
This sample script deploys the [JavaMelody monitoring tool](https://github.com/javamelody/javamelody/wiki) to Bonita web application. This example shows how to download external jars and include them to Bonita WAR.
With this example, JavaMelody will be available at this URL: `http://<bonita_host>:8081/bonita/monitoring`.