From fd8336aea8fc0af124e4af5f21c071c4da6d495f Mon Sep 17 00:00:00 2001 From: TomSno <109347564+TomSno@users.noreply.github.com> Date: Mon, 10 Jul 2023 11:50:04 +0200 Subject: [PATCH] Update how-to-install-akeneo-6-on-hypernode.md Configure Your .env File clarifications --- .../akeneo/how-to-install-akeneo-6-on-hypernode.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/ecommerce-applications/akeneo/how-to-install-akeneo-6-on-hypernode.md b/docs/ecommerce-applications/akeneo/how-to-install-akeneo-6-on-hypernode.md index f8c002ec..d13a5853 100644 --- a/docs/ecommerce-applications/akeneo/how-to-install-akeneo-6-on-hypernode.md +++ b/docs/ecommerce-applications/akeneo/how-to-install-akeneo-6-on-hypernode.md @@ -132,12 +132,12 @@ mysql -e "create database akeneo_pim;" ### Configure Your .env File -Edit the values of your MySQL user, password, host and Elasticsearch host in `/data/web/akeneo/.env` +Edit the values of your MySQL user, password, host and Elasticsearch host in `/data/web/akeneo/.env` by running these commands: ```bash sed -i "s/APP_DATABASE_PASSWORD=akeneo_pim/APP_DATABASE_PASSWORD=$(cat ~/.my.cnf | grep password | awk '{print$NF}')/" /data/web/akeneo/.env sed -i "s/APP_DATABASE_USER=akeneo_pim/APP_DATABASE_USER=$(cat ~/.my.cnf | grep user | awk '{print$NF}')/" /data/web/akeneo/.env -sed -i "s/APP_DATABASE_HOST=mysql/APP_DATABASE_HOST=mysqlmaster/" /data/web/akeneo/.env +sed -i "s/APP_DATABASE_HOST=mysql/APP_DATABASE_HOST=$(cat ~/.my.cnf |grep host|awk {'print $3'}/" /data/web/akeneo/.env sed -i "s/APP_INDEX_HOSTS=elasticsearch:9200/APP_INDEX_HOSTS=localhost:9200/" /data/web/akeneo/.env cp /data/web/akeneo/.env /data/web/akeneo/.env.local