Remove $email & $email_fullname from app settings
get them from the live system as needed
This commit is contained in:
+2
-5
@@ -53,14 +53,11 @@ ynh_script_progression --message="Ensuring backward compatibility..." --weight=1
|
||||
# Delete deprecated `firstname`/`lastname` settings. See upstream https://github.com/YunoHost/yunohost/pull/1516
|
||||
ynh_app_setting_delete --app=$app --key=email_firstname
|
||||
ynh_app_setting_delete --app=$app --key=email_lastname
|
||||
ynh_app_setting_delete --app=$app --key=email # also delete unnecessary duplicate of state storage
|
||||
|
||||
# Retrieve `$admin` user settings
|
||||
email_fullname="$(ynh_user_get_info --username=$admin --key=fullname)"
|
||||
email="$(ynh_user_get_info --username=$admin --key=mail)" # include as admin's email address is also subject to change
|
||||
|
||||
# Store app settings so app state is consistent with a fresh install
|
||||
ynh_app_setting_set --app=$app --key=email_fullname --value="$email_fullname"
|
||||
ynh_app_setting_set --app=$app --key=email --value=$email
|
||||
email="$(ynh_user_get_info --username=$admin --key=mail)"
|
||||
|
||||
#=================================================
|
||||
# UPDATE A CONFIG FILE
|
||||
|
||||
Reference in New Issue
Block a user