From 5dd93677362a9dd49c1522a4a13700b925f64128 Mon Sep 17 00:00:00 2001 From: Jason Kendall Date: Thu, 30 Jan 2020 11:29:49 -0500 Subject: [PATCH] Use cake to set baseurl --- server/files/entrypoint_apache.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/files/entrypoint_apache.sh b/server/files/entrypoint_apache.sh index ee0cfb3..f266ca8 100755 --- a/server/files/entrypoint_apache.sh +++ b/server/files/entrypoint_apache.sh @@ -38,7 +38,7 @@ init_misp_config(){ sed -i "s/db\s*password/$MYSQL_PASSWORD/" $MISP_APP_CONFIG_PATH/database.php echo "Configure sane defaults" - sed -i "s#'baseurl' => ''#'baseurl' => '$HOSTNAME'#" $MISP_APP_CONFIG_PATH/config.php + /var/www/MISP/app/Console/cake Admin setSetting "MISP.baseurl" $HOSTNAME } init_misp_files(){