mirror of
https://github.com/YunoHost-Apps/ihatemoney_ynh.git
synced 2024-09-03 19:26:15 +02:00
Handle password send via POST_UPGRADE.d
This commit is contained in:
parent
fa2989c8d7
commit
0d246f2179
2 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
|||
I Hate Money was successfully upgraded :)
|
||||
Please open https://__DOMAIN____PATH__/admin
|
||||
The admin password is: __PASSWORD__
|
||||
If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/ihatemoney_ynh
|
||||
If you facing an issue or want to improve this app, please open a new issue in this project: https://github.com/YunoHost-Apps/ihatemoney_ynh
|
|
@ -87,9 +87,8 @@ if [ -z "${hashed_password:-}" ] && [ test -f "${install_dir}/venv/bin/activate"
|
|||
)
|
||||
|
||||
hashed_password=$(cat $install_dir/key.txt)
|
||||
#REMOVEME? ynh_secure_remove --file="$install_dir/key.txt"
|
||||
#REMOVEME? ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password
|
||||
ynh_send_readme_to_admin --app_message="../conf/upgrade.msg" --type="upgrade"
|
||||
ynh_secure_remove --file="$install_dir/key.txt"
|
||||
ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password
|
||||
fi
|
||||
|
||||
if [ ! -d "/var/log/$app" ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue