mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
Update init.sh.jinja2
This commit is contained in:
parent
a421295790
commit
88b7db13b2
@ -20,7 +20,8 @@ else
|
||||
sudo sed -i "s/APP_PASSWORD=.*/APP_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
||||
else
|
||||
sudo sed -i "s/APP_PASSWORD=.*/APP_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
||||
app_encrypt_password=$(has_app_encrypt)
|
||||
cat .env |grep "APP_ENCRYPT=" |awk -F"APP_ENCRYPT=" '{ print $2 }' >>/tmp/encrypt.sh
|
||||
app_encrypt_password=$(bash /tmp/encrypt.sh)
|
||||
sudo sed -i "s/APP_ENCRYPT_PASSWORD=.*/APP_ENCRYPT_PASSWORD=$app_encrypt_password/g" /data/apps/{{app_name}}/.env
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user