1
0
Fork 0
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:
Salamandar 2023-06-10 23:09:43 +02:00 committed by Salamandar
parent fa2989c8d7
commit 0d246f2179
2 changed files with 3 additions and 4 deletions

View file

@ -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

View file

@ -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