Merge pull request #14 from focheur91300/patch-1

Update run.sh
Xavier Mertens 2019-05-02 22:11:03 +02:00 committed by GitHub
commit 9eccd741f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -91,7 +91,7 @@ if [ -r /.firstboot.tmp ]; then
cd /var/www/MISP/app/Config cd /var/www/MISP/app/Config
cp -a database.default.php database.php cp -a database.default.php database.php
sed -i "s/localhost/$MYSQL_HOST/" 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/8889/3306/" database.php
sed -i "s/db\s*password/$MYSQL_PASSWORD/" database.php sed -i "s/db\s*password/$MYSQL_PASSWORD/" database.php
@ -122,6 +122,7 @@ Passphrase: $MISP_ADMIN_PASSPHRASE
GPGEOF GPGEOF
sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --gen-key --batch /tmp/gpg.tmp >>/tmp/install.log sudo -u www-data gpg --homedir /var/www/MISP/.gnupg --gen-key --batch /tmp/gpg.tmp >>/tmp/install.log
rm -f /tmp/gpg.tmp 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 fi
# Display tips # Display tips