Skip to content

Commit

Permalink
fix friday afternoon use of 'if ! thing != thing2' to just 'if thing …
Browse files Browse the repository at this point in the history
…== thing2'
  • Loading branch information
UFOSmuggler committed Jun 2, 2024
1 parent 4217518 commit 7375b72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/files/configure_misp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ apply_critical_fixes() {

# Kludge for handling Security.auth array. Unrecognised by tools like cake admin setsetting.
local config_json=$(echo '<?php require_once "/var/www/MISP/app/Config/config.php"; echo json_encode($config, JSON_THROW_ON_ERROR | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); ?>'|/usr/bin/php)
if ! $(echo $config_json |jq -e 'getpath(("Security.auth" | split("."))) != null'); then
if $(echo $config_json |jq -e 'getpath(("Security.auth" | split("."))) == null'); then
echo "Updating unset critical setting 'Security.auth' to 'Array()'..."
sudo -u www-data php /var/www/MISP/tests/modify_config.php modify "{
\"Security\": {
Expand Down

0 comments on commit 7375b72

Please sign in to comment.