diff --git a/manifest.json b/manifest.json index 62a9528..c01cb88 100644 --- a/manifest.json +++ b/manifest.json @@ -30,15 +30,6 @@ "fr": "Choisissez un nom de domaine pour Matterbridge" }, "example": "example.com" - }, - { - "name": "is_public", - "type": "boolean", - "ask": { - "en": "Is it a public site?", - "fr": "Est-ce un site public ?" - }, - "default": true } ] } diff --git a/scripts/install b/scripts/install index a2aa995..00b1e84 100644 --- a/scripts/install +++ b/scripts/install @@ -21,8 +21,6 @@ ynh_abort_if_errors # Retrieve arguments domain=$YNH_APP_ARG_DOMAIN -path_url="/" -is_public=$YNH_APP_ARG_IS_PUBLIC architecture=$(ynh_detect_arch) app=$YNH_APP_INSTANCE_NAME @@ -35,6 +33,12 @@ ynh_script_progression --message="Validating installation parameters..." --weigh final_path=/opt/yunohost/$app test ! -e "$final_path" || ynh_die --message="This path already contains a folder" +# STORE SETTINGS FROM MANIFEST +#================================================= +ynh_script_progression --message="Storing installation settings..." --weight=1 + +ynh_app_setting_set --app=$app --key=domain --value=$domain + #================================================= # DOWNLOAD, CHECK AND UNPACK SOURCE #================================================= @@ -91,17 +95,6 @@ ynh_script_progression --message="Starting a systemd service..." --weight=1 # Reload services ynh_systemd_action --service_name=$app --action=start --log_path="/var/log/$app/$app.log" -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Configuring permissions..." --weight=1 - -# Make app public if necessary -if [ $is_public -eq 1 ] -then - ynh_permission_update --permission="main" --add="visitors" --show_tile="false" -fi - #================================================= # END OF SCRIPT #=================================================