diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..e84c576 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js + +before_install: + - git clone https://github.com/YunoHost/package_linter /tmp/package_linter + +script: +- /tmp/package_linter/package_linter.py ./ \ No newline at end of file diff --git a/check_process b/check_process index a4acac1..527fb02 100644 --- a/check_process +++ b/check_process @@ -6,12 +6,7 @@ ;; Test complet ; Manifest domain="domain.tld" (DOMAIN) - path="/path" (PATH) - admin="john" (USER) - language="fr" is_public=1 (PUBLIC|public=1|private=0) - password="pass" - port="666" (PORT) ; Checks pkg_linter=1 setup_sub_dir=1 @@ -31,7 +26,8 @@ Level 3=auto # Level 4: If the app supports LDAP and SSOwat, turn level 4 to '1' and add a link to an issue or a part of your code to show it. # If the app does not use LDAP nor SSOwat, and can't use them, turn level 4 to 'na' and explain as well. - Level 4=0 +#LDAP not available for now + Level 4=na Level 5=auto Level 6=auto Level 7=auto diff --git a/manifest.json b/manifest.json index 20f416c..1aa8d07 100644 --- a/manifest.json +++ b/manifest.json @@ -32,15 +32,6 @@ }, "example": "example.com" }, - { - "name": "admin", - "type": "user", - "ask": { - "en": "Choose an admin user", - "fr": "Choisissez l’administrateur" - }, - "example": "johndoe" - }, { "name": "is_public", "type": "boolean", @@ -49,28 +40,6 @@ "fr": "Est-ce une application publique ?" }, "default": true - }, - { - "name": "language", - "ask": { - "en": "Choose the application language", - "fr": "Choisissez la langue de l'application" - }, - "choices": ["fr", "en"], - "default": "fr" - }, - { - "name": "password", - "type": "password", - "ask": { - "en": "Set the administrator password", - "fr": "Définissez le mot de passe administrateur" - }, - "help": { - "en": "Use the help field to add an information for the admin about this question.", - "fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question." - }, - "example": "Choose a password" } ] } diff --git a/scripts/install b/scripts/install index c61520b..7d97d88 100644 --- a/scripts/install +++ b/scripts/install @@ -26,10 +26,10 @@ ynh_abort_if_errors domain=$YNH_APP_ARG_DOMAIN path_url="/" -admin=$YNH_APP_ARG_ADMIN +#admin=$YNH_APP_ARG_ADMIN is_public=$YNH_APP_ARG_IS_PUBLIC -language=$YNH_APP_ARG_LANGUAGE -password=$YNH_APP_ARG_PASSWORD +#language=$YNH_APP_ARG_LANGUAGE +#password=$YNH_APP_ARG_PASSWORD ### If it's a multi-instance app, meaning it can be installed several times independently ### The id of the app as stated in the manifest is available as $YNH_APP_ID @@ -64,9 +64,9 @@ ynh_webpath_register $app $domain $path_url ynh_app_setting_set $app domain $domain ynh_app_setting_set $app path $path_url -ynh_app_setting_set $app admin $admin +#ynh_app_setting_set $app admin $admin ynh_app_setting_set $app is_public $is_public -ynh_app_setting_set $app language $language +#ynh_app_setting_set $app language $language #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index ce635bf..be8edab 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -17,10 +17,10 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get $app domain) path_url=$(ynh_app_setting_get $app path) -admin=$(ynh_app_setting_get $app admin) +#admin=$(ynh_app_setting_get $app admin) is_public=$(ynh_app_setting_get $app is_public) final_path=$(ynh_app_setting_get $app final_path) -language=$(ynh_app_setting_get $app language) +#language=$(ynh_app_setting_get $app language) db_name=$(ynh_app_setting_get $app db_name) port=$(ynh_app_setting_get $app port)