Merge pull request #110 from ckane/fix-baseurl

Fix bug in patching the MISP.baseurl from environment
Alexandre Dulaunoy 2021-03-07 23:00:57 +01:00 committed by GitHub
commit ec74503c97
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ if [ -r /.firstboot.tmp ]; then
echo "No base URL defined, don't forget to define it manually!"
else
echo "Fixing the MISP base URL ($MISP_BASEURL) ..."
sed -i "s/'baseurl' => '',/'baseurl' => '$MISP_BASEURL',/g" /var/www/MISP/app/Config/config.php
sed -i "s@'baseurl'[\t ]*=>[\t ]*'',@'baseurl' => '$MISP_BASEURL',@g" /var/www/MISP/app/Config/config.php
fi
# Generate the admin user PGP key