Update init.sh.jinja2

This commit is contained in:
qiaofeng1227 2022-08-03 16:08:15 +08:00 committed by GitHub
parent bca0cd9a89
commit be2a9c7221
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,13 +52,13 @@ 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}} ========="
echo "========= credentials for {{appname}} =========" >> /credentials/password.txt
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 " "
echo " " >> /credentials/password.txt
{% endfor %}
sudo echo "init docker ended at" $(date -d now) 1>> /tmp/init_debug.txt