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
eb2eee6b4b
commit
2b11d1da58
@ -59,7 +59,7 @@ cat /data/apps/{{app_name}}/.env | grep 'APP_USER' |awk -F"=" '{print $1": "$2}'
|
||||
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_|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]')
|
||||
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