diff --git a/manifest.json b/manifest.json index b7899fe..ca92adb 100644 --- a/manifest.json +++ b/manifest.json @@ -18,12 +18,20 @@ }, "multi_instance": false, "services": [ - "nginx", - "php5-fpm", - "mysql" + "nginx" ], - "arguments": { - "install": [{ + "arguments": { + "install" : [ + { + "name": "domain", + "type": "domain", + "ask": { + "en": "Choose a domain name for ynhexample", + "fr": "Choisissez un nom de domaine pour ynhexample" + }, + "example": "example.com" + }, + { "name": "is_public", "type": "boolean", "ask": { diff --git a/scripts/install b/scripts/install index 13a6c57..f02d325 100644 --- a/scripts/install +++ b/scripts/install @@ -13,11 +13,6 @@ source /usr/share/yunohost/helpers # MANAGE SCRIPT FAILURE #================================================= -ynh_clean_setup () { - ### Remove this function if there's nothing to clean before calling the remove script. - true -} -# Exit if an error occurs during the execution of the script ynh_abort_if_errors #================================================= @@ -25,6 +20,7 @@ ynh_abort_if_errors #================================================= # Retrieve arguments +domain=$YNH_APP_ARG_DOMAIN is_public=$YNH_APP_ARG_IS_PUBLIC architecture=$(ynh_detect_arch)