diff --git a/config_panel.json b/config_panel.json index d2d2442..b07912f 100644 --- a/config_panel.json +++ b/config_panel.json @@ -11,12 +11,11 @@ "id": "is_public", "options": [ { - "name": "Public app", + "name": "is_public", "ask": { "en": "Is it a public app ?" }, - "id": "is_public", - "type": "bool", + "type": "boolean", "default": true } ] @@ -26,13 +25,12 @@ "id": "overwrite_files", "options": [ { - "name": "Overwrite the nginx config file", + "name": "overwrite_nginx", "ask": { "en": "Overwrite the nginx config file ?" }, "help": "If the file is overwritten, a backup will be created.", - "id": "overwrite_nginx", - "type": "bool", + "type": "boolean", "default": true } ] @@ -42,13 +40,12 @@ "id": "users", "options": [ { - "name": "Authorized external user creation", + "name": "use_web_account", "ask": { "en": "Authorized external user creation ?" }, "help": "Allow user to be created without yunohost account.", - "id": "use_web_account", - "type": "bool", + "type": "boolean", "default": true } ] @@ -58,83 +55,75 @@ "id": "backup_strategy", "options": [ { - "name": "Backup db", + "name": "backup_db", "ask": { "en": "Should gitlab backup the database ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_db", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup uploads", + "name": "backup_uploads", "ask": { "en": "Should gitlab backup attachments ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_uploads", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup repositories", + "name": "backup_repositories", "ask": { "en": "Should gitlab backup git repositories data ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_repositories", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup builds", + "name": "backup_builds", "ask": { "en": "Should gitlab backup CI job output logs ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_builds", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup artifacts", + "name": "backup_artifacts", "ask": { "en": "Should gitlab backup CI job artifacts ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_artifacts", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup lfs", + "name": "backup_lfs", "ask": { "en": "Should gitlab backup LFS objects ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_lfs", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup registry", + "name": "backup_registry", "ask": { "en": "Should gitlab backup container registry images ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_registry", - "type": "bool", + "type": "boolean", "default": true }, { - "name": "Backup pages", + "name": "backup_pages", "ask": { "en": "Should gitlab backup pages content ?" }, "help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup", - "id": "backup_pages", - "type": "bool", + "type": "boolean", "default": true } ] diff --git a/manifest.json b/manifest.json index d9daf42..936b4fd 100644 --- a/manifest.json +++ b/manifest.json @@ -14,7 +14,7 @@ "email": "pierre@kayou.io" }, "requirements": { - "yunohost": ">= 3.5.0" + "yunohost": ">= 3.6.0" }, "multi_instance": false, "services": [ diff --git a/scripts/config b/scripts/config index 800d7d8..508a153 100644 --- a/scripts/config +++ b/scripts/config @@ -81,27 +81,27 @@ show_config() { # here you are supposed to read some config file/database/other then print the values # echo "YNH_CONFIG_${PANEL_ID}_${SECTION_ID}_${OPTION_ID}=value" - echo "YNH_CONFIG_MAIN_IS_PUBLIC_IS_PUBLIC=$is_public" + ynh_return "YNH_CONFIG_MAIN_IS_PUBLIC_IS_PUBLIC=$is_public" - echo "YNH_CONFIG_MAIN_OVERWRITE_FILES_OVERWRITE_NGINX=$overwrite_nginx" + ynh_return "YNH_CONFIG_MAIN_OVERWRITE_FILES_OVERWRITE_NGINX=$overwrite_nginx" - echo "YNH_CONFIG_MAIN_USERS_USE_WEB_ACCOUNT=$use_web_account" + ynh_return "YNH_CONFIG_MAIN_USERS_USE_WEB_ACCOUNT=$use_web_account" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_DB=$backup_db" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_DB=$backup_db" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_UPLOADS=$backup_uploads" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_UPLOADS=$backup_uploads" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_REPOSITORIES=$backup_repositories" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_REPOSITORIES=$backup_repositories" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_BUILDS=$backup_builds" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_BUILDS=$backup_builds" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_ARTIFACTS=$backup_artifacts" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_ARTIFACTS=$backup_artifacts" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_LFS=$backup_lfs" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_LFS=$backup_lfs" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_REGISTRY=$backup_registry" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_REGISTRY=$backup_registry" - echo "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_PAGES=$backup_pages" + ynh_return "YNH_CONFIG_MAIN_BACKUP_STRATEGY_BACKUP_PAGES=$backup_pages" } #=================================================