Merge pull request #136 from ktb-jcm/patch-1

Update run.sh to include fixing database name in config.php
Alexandre Dulaunoy 2021-11-04 13:49:43 +01:00 committed by GitHub
commit 698155fc1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,8 @@ if [ -r /.firstboot.tmp ]; then
echo "Creating MISP configuration files"
cd /var/www/MISP/app/Config
cp -a database.default.php database.php
sed -i "s/localhost/$MYSQL_HOST/" database.php
sed -i "s/'database' => 'misp'/'database' => '$MYSQL_DATABASE'/" database.php
sed -i "s/localhost/$MYSQL_HOST/" database.php
sed -i "s/db\s*login/$MYSQL_USER/" database.php
sed -i "s/8889/3306/" database.php
sed -i "s/db\s*password/$MYSQL_PASSWORD/" database.php