Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make every MISP setting customizable by environment variables. #88

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
improving sed regular expressions
garritschroeder0001 committed Jan 28, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit 1f43c9a0c6a4a15da2501539d57917b1cb9958af
4 changes: 2 additions & 2 deletions server/files/entrypoint_nginx.sh
Original file line number Diff line number Diff line change
@@ -53,8 +53,8 @@ init_misp_config(){

# iterate over every environment variable starting with "M_S_" and parsing it to key value pair to execute cake setting
for var in $(env | grep M_S_); do
setting_name="$(echo "$var" | sed -r "s/M_S_//g" | sed -r "s/=(.*)//g")"
setting_value="$(echo "$var" | sed -r "s/M_S_(.*)=//g")"
setting_name="$(echo "$var" | sed "s/^M_S_//g" | sed "s/=.*$//g")"
setting_value="$(echo "$var" | sed "s/^M_S_.*=//g")"
/var/www/MISP/app/Console/cake Admin setSetting "${setting_name}" "${setting_value}"
done
}