Replace redis 127.0.0.1 in cake config

pull/1/head
Sentinel Bot 2020-12-29 22:40:32 +00:00
parent 066f5c8dfa
commit d00c31ef33
No known key found for this signature in database
GPG Key ID: EB5E14327B10D023
1 changed files with 2 additions and 1 deletions

View File

@ -15,6 +15,7 @@ ENTRYPOINT_PID_FILE="/entrypoint_apache.install"
setup_cake_config(){ setup_cake_config(){
sed -i "s/'host' => 'localhost'.*/'host' => '$REDIS_FQDN', \/\/ Redis server hostname/" "/var/www/MISP/app/Plugin/CakeResque/Config/config.php" sed -i "s/'host' => 'localhost'.*/'host' => '$REDIS_FQDN', \/\/ Redis server hostname/" "/var/www/MISP/app/Plugin/CakeResque/Config/config.php"
sed -i "s/'host' => '127.0.0.1'.*/'host' => '$REDIS_FQDN', \/\/ Redis server hostname/" "/var/www/MISP/app/Plugin/CakeResque/Config/config.php"
} }
init_misp_config(){ init_misp_config(){