mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
fbc4b01140
commit
eb2eee6b4b
@ -57,9 +57,10 @@ bash /data/apps/{{app_name}}/src/after_up.sh
|
||||
echo "========= credentials for {{app_name}} =========" >> /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 APP_|grep PORT |awk -F"=" '{print $1": "$2}' >> /credentials/password.txt
|
||||
cat /data/apps/{{app_name}}/.env | grep 'DB_' |awk -F"=" '{print $1": "$2}' >> /credentials/password.txt
|
||||
upper=$(echo {{app_name}} | tr '[A-Z]' '[a-z]')
|
||||
sudo sed -i "s/APP/$upper/g" /credentials/password.txt
|
||||
echo " " >> /credentials/password.txt
|
||||
{% endfor %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user