Skip to content

Commit

Permalink
Revert some changes to unblock new users
Browse files Browse the repository at this point in the history
  • Loading branch information
ostefano committed Jun 12, 2024
1 parent 261c541 commit 303ea9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 6 additions & 1 deletion core/files/configure_misp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ export SETTING_EMAIL="${MISP_EMAIL-$ADMIN_EMAIL}"
init_cli_only_config() {
# I think no matter what we do, we should wait for this table to turn up.
# Only really impacts us on first run, and on my machine only takes a few seconds to turn up.
await_system_settings_table
# TODO: this is not the right solution because `system_settings` is not part of the original dump
# await_system_settings_table
# Temporarily disable DB to apply cli_only settings, since these MUST be in the config.php file (by design or otherwise)
# This will reenable upon init_settings "db_enable" below if it is indeed enabled
sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "MISP.system_setting_db" false
Expand Down Expand Up @@ -213,8 +214,12 @@ set_up_proxy() {
}

apply_updates() {
# Disable 'ZeroMQ_enable' to get better logs when applying updates
sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "Plugin.ZeroMQ_enable" false
# Run updates (strip colors since output might end up in a log)
sudo -u www-data /var/www/MISP/app/Console/cake Admin runUpdates | sed -r "s/[[:cntrl:]]\[[0-9]{1,3}m//g"
# Re-enable 'ZeroMQ_enable'
sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "Plugin.ZeroMQ_enable" true
}

init_user() {
Expand Down
4 changes: 0 additions & 4 deletions core/files/etc/misp-docker/cli_only.defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,6 @@
"Security.disable_instance_file_uploads": {
"default_value": false
},
"Security.encryption_key": {
"default_value": "",
"command_args": "-f"
},
"Security.salt": {
"default_value": "",
"command_args": "-f"
Expand Down

0 comments on commit 303ea9d

Please sign in to comment.