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
66e47fb9c8
commit
3c952cd4b2
2 changed files with 3 additions and 4 deletions
|
@ -1,4 +1,4 @@
|
||||||
I Hate Money was successfully upgraded :)
|
I Hate Money was successfully upgraded :)
|
||||||
Please open https://__DOMAIN____PATH__/admin
|
Please open https://__DOMAIN____PATH__/admin
|
||||||
The admin password is: __PASSWORD__
|
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)
|
hashed_password=$(cat $install_dir/key.txt)
|
||||||
#REMOVEME? ynh_secure_remove --file="$install_dir/key.txt"
|
ynh_secure_remove --file="$install_dir/key.txt"
|
||||||
#REMOVEME? ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password
|
ynh_app_setting_set --app=$app --key=hashed_password --value=$hashed_password
|
||||||
ynh_send_readme_to_admin --app_message="../conf/upgrade.msg" --type="upgrade"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -d "/var/log/$app" ]; then
|
if [ ! -d "/var/log/$app" ]; then
|
||||||
|
|
Loading…
Add table
Reference in a new issue