Update init.sh.jinja2

This commit is contained in:
qiaofeng1227 2022-07-12 15:31:30 +08:00 committed by GitHub
parent 16cd533b7a
commit 15ea58819d
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
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