mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
f9693c3d6f
commit
b6031f5706
@ -26,9 +26,11 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# change all the variables to real value,such as DB_MYSQL_PASSWORD=$APP_PASSWORD=>DB_MYSQL_PASSWORD=ues983ks9309023!
|
# change all the variables to real value,such as DB_MYSQL_PASSWORD=$APP_PASSWORD=>DB_MYSQL_PASSWORD=ues983ks9309023!
|
||||||
source /data/apps/{{app_name}}/.env
|
cd /data/apps/{{app_name}}
|
||||||
envsubst < .env > /tmp/env
|
source .env
|
||||||
cat /tmp/env > /data/apps/{{app_name}}/.env
|
envsubst < .env > /temp
|
||||||
|
cat temp > .env
|
||||||
|
rm -f temp
|
||||||
|
|
||||||
# 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)
|
||||||
|
Loading…
Reference in New Issue
Block a user