mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
ce532c0909
commit
108bbff8b9
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user