Update init.sh.jinja2

This commit is contained in:
qiaofeng1227 2022-07-13 11:57:25 +08:00 committed by GitHub
parent 769789da82
commit 2b8a4e5214
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,10 @@ export $(cat .env)
envsubst < .env > temp envsubst < .env > temp
cat temp > .env cat temp > .env
rm -f temp rm -f temp
{% if app_name == appname %}
cat .env |grep 'DB_\|APP_' > /credentials/password.txt cat .env |grep 'DB_\|APP_' > /credentials/password.txt
{% endif %}
# init APP_URL # init APP_URL
app_url_replace=$(cat /data/apps/{{app_name}}/.env |grep APP_URL_REPLACE) app_url_replace=$(cat /data/apps/{{app_name}}/.env |grep APP_URL_REPLACE)