From b59287e9f62f4d324af67a007c2800728a56e6d2 Mon Sep 17 00:00:00 2001 From: Philippe Date: Thu, 10 Jan 2019 13:22:23 +0100 Subject: [PATCH] Update run.sh Modification of the file database.php to be able to give the possibility to a MISP to connect to a database with another user. Addition to download the GPG key on the MISP homepage. --- web/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/run.sh b/web/run.sh index 7116163..f898f41 100755 --- a/web/run.sh +++ b/web/run.sh @@ -91,7 +91,7 @@ if [ -r /.firstboot.tmp ]; then cd /var/www/MISP/app/Config cp -a database.default.php database.php sed -i "s/localhost/$MYSQL_HOST/" database.php - sed -i "s/db\s*login/$MYSQL_DATABASE/" 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 @@ -122,6 +122,7 @@ Passphrase: $MISP_ADMIN_PASSPHRASE GPGEOF sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --gen-key --batch /tmp/gpg.tmp >>/tmp/install.log rm -f /tmp/gpg.tmp + sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --export --armor $MISP_ADMIN_EMAIL > /var/www/MISP/app/webroot/gpg.asc" fi # Display tips