From dc421c7a8a6dbffd74afc7fb47c4f6f6e2f77cb8 Mon Sep 17 00:00:00 2001 From: diegolamaral Date: Wed, 2 Oct 2024 13:48:35 +0000 Subject: [PATCH] Update sudo Usage for MISP Configuration Commands --- core/files/configure_misp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/files/configure_misp.sh b/core/files/configure_misp.sh index c892b47..dac6178 100755 --- a/core/files/configure_misp.sh +++ b/core/files/configure_misp.sh @@ -128,10 +128,10 @@ set_up_oidc() { }" > /dev/null # Use sed to remove the OidcAuth.Oidc entry from the 'auth' array in the config.php - sudo sed -i "/'auth' =>/,/)/ { /0 => 'OidcAuth.Oidc',/d; }" /var/www/MISP/app/Config/config.php + sudo -u www-data sed -i "/'auth' =>/,/)/ { /0 => 'OidcAuth.Oidc',/d; }" /var/www/MISP/app/Config/config.php # Remove the custom logout URL - sed -i "/'CustomAuth_custom_logout' =>/d" /var/www/MISP/app/Config/config.php + sudo -u www-data sed -i "/'CustomAuth_custom_logout' =>/d" /var/www/MISP/app/Config/config.php # Re-enable password confirmation if necessary sudo -u www-data /var/www/MISP/app/Console/cake Admin setSetting -q "Security.require_password_confirmation" true