mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-11-22 15:40:22 +00:00
Update init.sh.jinja2
This commit is contained in:
parent
fc8509cd8e
commit
9bc7181fcb
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ fi
|
|||
# init password
|
||||
sudo sed -i "s/POWER_PASSWORD=.*/POWER_PASSWORD=$new_password/g" /data/apps/{{app_name}}/.env
|
||||
# has_app_encrypt
|
||||
has_app_encrypt=$(cat /data/apps/{{app_name}}/.env |grep "APP_ENCRYPT_PASSWORD=true")
|
||||
if [ $has_app_encrypt = "APP_ENCRYPT_PASSWORD=true" ]; then
|
||||
has_app_encrypt=$(cat /data/apps/{{app_name}}/.env |grep "APP_ENCRYPT_PASSWORD")
|
||||
if [ $has_app_encrypt =~ "APP_ENCRYPT_PASSWORD" ]; then
|
||||
echo "Encrypt password" 1>> /tmp/init_debug.txt
|
||||
app_encrypt_password=$(bash /data/apps/{{app_name}}/src/encrypt.sh $new_password)
|
||||
sudo sed -i "s/APP_ENCRYPT_PASSWORD=.*/APP_ENCRYPT_PASSWORD=$app_encrypt_password/g" /data/apps/{{app_name}}/.env
|
||||
|
|
Loading…
Reference in a new issue