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
15ea58819d
commit
62d54fd39f
@ -20,8 +20,7 @@ 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
|
||||
cat .env |grep "APP_ENCRYPT=" |awk -F"APP_ENCRYPT=" '{ print $2 }'|awk -F'"' '{ print $2 }' > /tmp/encrypt.sh
|
||||
app_encrypt_password=$(bash /tmp/encrypt.sh)
|
||||
app_encrypt_password=$(bash /data/apps/{{app_name}}/src/encrypt.sh)
|
||||
sudo sed -i "s/APP_ENCRYPT_PASSWORD=.*/APP_ENCRYPT_PASSWORD=$app_encrypt_password/g" /data/apps/{{app_name}}/.env
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user