mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 01:50:19 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
28159d2b22
commit
bca0cd9a89
@ -51,10 +51,14 @@ fi
|
||||
echo "Executing after_up.sh" 1>> /tmp/init_debug.txt
|
||||
bash /data/apps/{{app_name}}/src/after_up.sh
|
||||
|
||||
#3 create password file for guests
|
||||
echo "========= credentials for {{appname}} ========="
|
||||
cat /data/apps/{{app_name}}/.env | grep 'APP_USER' |awk -F"=" '{print $1": "$2}' >> /credentials/password.txt
|
||||
cat /data/apps/{{app_name}}/.env | grep 'APP_PASSWORD' |awk -F"=" '{print $1": "$2}' >> /credentials/password.txt
|
||||
cat /data/apps/{{app_name}}/.env | grep 'APP_VERSION' |awk -F"=" '{print $1": "$2}' >> /credentials/password.txt
|
||||
cat /data/apps/{{app_name}}/.env | grep 'APP_PORT' |awk -F"=" '{print $1": "$2}' >> /credentials/password.txt
|
||||
cat /data/apps/{{app_name}}/.env | grep 'DB_' >> /credentials/password.txt
|
||||
echo " "
|
||||
{% endfor %}
|
||||
|
||||
# create password file for guests
|
||||
cat /data/apps/{{appname}}/.env | grep 'APP_' >> /credentials/password.txt
|
||||
cat /data/apps/{{appname}}/.env | grep 'DB_' >> /credentials/password.txt
|
||||
|
||||
sudo echo "init docker ended at" $(date -d now) 1>> /tmp/init_debug.txt
|
||||
|
Loading…
Reference in New Issue
Block a user