From a421295790184d582ecf8ec3f9e1ea6ddb1906f7 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Tue, 12 Jul 2022 10:12:13 +0800 Subject: [PATCH] Update init.sh.jinja2 --- apps/roles/role_init/templates/init.sh.jinja2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/roles/role_init/templates/init.sh.jinja2 b/apps/roles/role_init/templates/init.sh.jinja2 index 92a605ed..05c72885 100644 --- a/apps/roles/role_init/templates/init.sh.jinja2 +++ b/apps/roles/role_init/templates/init.sh.jinja2 @@ -15,7 +15,7 @@ if [ $has_app_password == "" ]; then sudo sed -i "s/_PASSWORD=.*/_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env else # 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 sudo sed -i "s/APP_PASSWORD=.*/APP_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env else