Update init.sh.jinja2

This commit is contained in:
qiaofeng1227 2022-07-12 10:12:13 +08:00 committed by GitHub
parent 370115aad4
commit a421295790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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