Commit 238c85b1 authored by Egor Kremnev's avatar Egor Kremnev

fix scripts

parent eb32a463
......@@ -70,7 +70,6 @@ cd ${PROJECT_ROOT}
info "# Set environments"
cp ${PROJECT_ROOT}/.env ${APPLICATION_ROOT_PATH}/.env
source .env
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
......@@ -84,7 +83,7 @@ sed -i -e 's/^\(DB_USERNAME=\).*/\1'$([ -n "$DB_USERNAME_ENV" ] && echo "$DB_USE
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}/
cat ${APPLICATION_ROOT_PATH}/.env > ${PROJECT_ROOT}/.env
info "# Create database backup"
mysqldump -u ${DB_DATABASE} > DB_DUMP_PATH
......
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