Update init.sh.jinja2

This commit is contained in:
qiaofeng1227 2022-07-14 08:43:08 +08:00 committed by GitHub
parent ce532c0909
commit 108bbff8b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,10 +26,6 @@ envsubst < .env > temp
cat temp > .env
rm -f temp
{% if app_name == appname %}
cat .env |grep 'DB_\|APP_' > /credentials/password.txt
{% endif %}
# init APP_URL
app_url_replace=$(cat /data/apps/{{app_name}}/.env |grep APP_URL_REPLACE)
if [ $app_url_replace == "APP_URL_REPLACE=true" ]; then
@ -55,4 +51,6 @@ fi
{% endfor %}
cat /data/apps/{{appname}}/.env |grep 'DB_\|APP_' > /credentials/password.txt
sudo sh -c 'echo "init docker ended at" $(date -d now) 1>> /tmp/init_debug.txt'