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
2096bc6d96
commit
769789da82
@ -20,10 +20,10 @@ 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!
|
||||||
cd /data/apps/{{app_name}}
|
cd /data/apps/{{app_name}}
|
||||||
cp .env temp
|
export $(cat .env)
|
||||||
source temp
|
envsubst < .env > temp
|
||||||
envsubst < temp > temp2
|
cat temp > .env
|
||||||
cat temp2 > .env
|
rm -f temp
|
||||||
cat .env |grep 'DB_\|APP_' > /credentials/password.txt
|
cat .env |grep 'DB_\|APP_' > /credentials/password.txt
|
||||||
|
|
||||||
# init APP_URL
|
# init APP_URL
|
||||||
|
Loading…
Reference in New Issue
Block a user