diff --git a/scripts/install b/scripts/install index 5061cd6..b1a5933 100755 --- a/scripts/install +++ b/scripts/install @@ -15,6 +15,15 @@ timezone="$(cat /etc/timezone)" firstname=$(yunohost user list --fields firstname --output-as json | jq -r .users.$admin.firstname) lastname=$(yunohost user list --fields lastname --output-as json | jq -r .users.$admin.lastname) +#================================================= +# STORE SETTINGS FROM MANIFEST +#================================================= +ynh_script_progression --message="Storing installation settings..." --weight=1 + +ynh_app_setting_set --app=$app --key=password --value="$password" +ynh_app_setting_set --app=$app --key=firstname --value=$firstname +ynh_app_setting_set --app=$app --key=lastname --value=$lastname + #================================================= # INSTALL DEPENDENCIES #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 28df495..c0c84fa 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -12,8 +12,6 @@ source /usr/share/yunohost/helpers secret=$(ynh_string_random --length=50) email=$(ynh_user_get_info --username=$admin --key=mail) timezone="$(cat /etc/timezone)" -firstname=$(yunohost user list --fields firstname --output-as json | jq -r .users.$admin.firstname) -lastname=$(yunohost user list --fields lastname --output-as json | jq -r .users.$admin.lastname) upgrade_type=$(ynh_check_app_version_changed)