From 1c05366a26ac2460d861cf27132c10ae379c833e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 29 Oct 2023 10:03:34 +0100 Subject: [PATCH] cleaning --- conf/config.json | 2 +- scripts/install | 2 +- scripts/upgrade | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/conf/config.json b/conf/config.json index 4c80dd2..1b77585 100644 --- a/conf/config.json +++ b/conf/config.json @@ -21,7 +21,7 @@ "panel": { "email": { "provider": "smtp", - "from": "pufferpanel@__MAIN_DOMAIN__", + "from": "__EMAIL__", "host": "localhost", "username": "__APP__", "password": "__MAIL_PWD__", diff --git a/scripts/install b/scripts/install index 7e0c2ca..3ef5ba9 100644 --- a/scripts/install +++ b/scripts/install @@ -13,7 +13,7 @@ source /usr/share/yunohost/helpers # RETRIEVE ARGUMENTS FROM THE MANIFEST #================================================= -mail=$(ynh_user_get_info --username=$admin --key=mail) +email=$(ynh_user_get_info --username=$admin --key=mail) #================================================= # CHECK IF THE APP CAN BE INSTALLED WITH THESE ARGS diff --git a/scripts/upgrade b/scripts/upgrade index b1618c3..41f4066 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -9,6 +9,12 @@ source _common.sh source /usr/share/yunohost/helpers +#================================================= +# RETRIEVE ARGUMENTS FROM THE MANIFEST +#================================================= + +email=$(ynh_user_get_info --username=$admin --key=mail) + #================================================= # CHECK VERSION #=================================================