From 6cdfab52e3383519ec9d2e5960d6fa13e57bbdc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Sat, 10 Jun 2023 23:09:43 +0200 Subject: [PATCH] Handle password send via POST_UPGRADE.d --- conf/upgrade.msg => doc/POST_UPGRADE.d/4.1.5~ynh3.md | 2 +- scripts/upgrade | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) rename conf/upgrade.msg => doc/POST_UPGRADE.d/4.1.5~ynh3.md (95%) diff --git a/conf/upgrade.msg b/doc/POST_UPGRADE.d/4.1.5~ynh3.md similarity index 95% rename from conf/upgrade.msg rename to doc/POST_UPGRADE.d/4.1.5~ynh3.md index 94933ac..9551c65 100644 --- a/conf/upgrade.msg +++ b/doc/POST_UPGRADE.d/4.1.5~ynh3.md @@ -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 \ No newline at end of file +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 diff --git a/scripts/upgrade b/scripts/upgrade index 0f14b13..7fe01a5 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -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