mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 18:30:23 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
16cd533b7a
commit
15ea58819d
@ -15,7 +15,7 @@ if [ $has_app_password == "" ]; then
|
|||||||
sudo sed -i "s/_PASSWORD=.*/_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
sudo sed -i "s/_PASSWORD=.*/_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
||||||
else
|
else
|
||||||
# has_app_encrypt
|
# has_app_encrypt
|
||||||
has_app_encrypt==$(cat /data/apps/{{app_name}}/.env |grep "APP_ENCRYPT=")
|
has_app_encrypt=$(cat /data/apps/{{app_name}}/.env |grep "APP_ENCRYPT=")
|
||||||
if [ $has_app_encrypt == "" ]; then
|
if [ $has_app_encrypt == "" ]; then
|
||||||
sudo sed -i "s/APP_PASSWORD=.*/APP_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
sudo sed -i "s/APP_PASSWORD=.*/APP_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user