Skip to content

Commit

Permalink
fix(gateway): fix conf path not created error
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Jan 21, 2022
1 parent 4570f99 commit 97d2693
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/gateway/scripts/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ conf_dir=/conf.${SERVICE_DRIVER:-docker}

template_dir="${NGINX_ENVSUBST_TEMPLATE_DIR:-/etc/nginx/templates}"

cp -n ${conf_dir}/system.conf /etc/nginx/templates/system.conf.template || true
cp -n ${conf_dir}/app.conf /etc/nginx/templates/app.conf.template || true
cp -n ${conf_dir}/fs-proxy.conf /etc/nginx/templates/fs-proxy.conf.template || true
echo "template_dir: " $template_dir
echo "conf_dir: " $conf_dir

mkdir -p $template_dir

cp -n ${conf_dir}/system.conf ${template_dir}/system.conf.template || true
cp -n ${conf_dir}/app.conf ${template_dir}/app.conf.template || true
cp -n ${conf_dir}/fs-proxy.conf ${template_dir}/fs-proxy.conf.template || true

sh /scripts/auto_envsubst.sh

Expand Down

0 comments on commit 97d2693

Please sign in to comment.