Commit eb32a463 authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent 41f6782f
......@@ -72,17 +72,17 @@ cp ${PROJECT_ROOT}/.env ${APPLICATION_ROOT_PATH}/.env
source .env
env
sed -i '' 's/^#DB_HOST=/DB_HOST=/g' ".env"
sed -i '' 's/^\(DB_HOST=\).*/\1'$([ -n "$DB_HOST_ENV" ] && echo "$DB_HOST_ENV" || echo "$DB_HOST")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i -e 's/^#DB_HOST=/DB_HOST=/g' ".env"
sed -i -e 's/^\(DB_HOST=\).*/\1'$([ -n "$DB_HOST_ENV" ] && echo "$DB_HOST_ENV" || echo "$DB_HOST")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i '' 's/^#DB_PORT=/DB_PORT=/g' ".env"
sed -i '' 's/^\(DB_PORT=\).*/\1'$([ -n "$DB_PORT_ENV" ] && echo "$DB_PORT_ENV" || echo "$DB_PORT")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i -e 's/^#DB_PORT=/DB_PORT=/g' ".env"
sed -i -e 's/^\(DB_PORT=\).*/\1'$([ -n "$DB_PORT_ENV" ] && echo "$DB_PORT_ENV" || echo "$DB_PORT")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i '' 's/^#DB_USERNAME=/DB_USERNAME=/g' ".env"
sed -i '' 's/^\(DB_USERNAME=\).*/\1'$([ -n "$DB_USERNAME_ENV" ] && echo "$DB_USERNAME_ENV" || echo "$DB_USERNAME")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i -e 's/^#DB_USERNAME=/DB_USERNAME=/g' ".env"
sed -i -e 's/^\(DB_USERNAME=\).*/\1'$([ -n "$DB_USERNAME_ENV" ] && echo "$DB_USERNAME_ENV" || echo "$DB_USERNAME")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i '' 's/^#DB_PASSWORD=/DB_PASSWORD=/g' ".env"
sed -i '' 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PASSWORD_ENV" || echo "$DB_PASSWORD")'/' ${APPLICATION_ROOT_PATH}/.env
sed -i -e 's/^#DB_PASSWORD=/DB_PASSWORD=/g' ".env"
sed -i -e 's/^\(DB_PASSWORD=\).*/\1'$([ -n "$DB_PASSWORD_ENV" ] && echo "$DB_PASSWORD_ENV" || echo "$DB_PASSWORD")'/' ${APPLICATION_ROOT_PATH}/.env
cat ${APPLICATION_ROOT_PATH}/.env > ${PROJECT_ROOT}/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment