mirror of
https://github.com/YunoHost-Apps/gitlab_ynh.git
synced 2024-09-03 18:36:35 +02:00
Fix config panel
This commit is contained in:
parent
d1bb42cad7
commit
ef937d372b
3 changed files with 34 additions and 45 deletions
|
@ -11,12 +11,11 @@
|
||||||
"id": "is_public",
|
"id": "is_public",
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"name": "Public app",
|
"name": "is_public",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Is it a public app ?"
|
"en": "Is it a public app ?"
|
||||||
},
|
},
|
||||||
"id": "is_public",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -26,13 +25,12 @@
|
||||||
"id": "overwrite_files",
|
"id": "overwrite_files",
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"name": "Overwrite the nginx config file",
|
"name": "overwrite_nginx",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Overwrite the nginx config file ?"
|
"en": "Overwrite the nginx config file ?"
|
||||||
},
|
},
|
||||||
"help": "If the file is overwritten, a backup will be created.",
|
"help": "If the file is overwritten, a backup will be created.",
|
||||||
"id": "overwrite_nginx",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -42,13 +40,12 @@
|
||||||
"id": "users",
|
"id": "users",
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"name": "Authorized external user creation",
|
"name": "use_web_account",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Authorized external user creation ?"
|
"en": "Authorized external user creation ?"
|
||||||
},
|
},
|
||||||
"help": "Allow user to be created without yunohost account.",
|
"help": "Allow user to be created without yunohost account.",
|
||||||
"id": "use_web_account",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -58,83 +55,75 @@
|
||||||
"id": "backup_strategy",
|
"id": "backup_strategy",
|
||||||
"options": [
|
"options": [
|
||||||
{
|
{
|
||||||
"name": "Backup db",
|
"name": "backup_db",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup the database ?"
|
"en": "Should gitlab backup the database ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_db",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup uploads",
|
"name": "backup_uploads",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup attachments ?"
|
"en": "Should gitlab backup attachments ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_uploads",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup repositories",
|
"name": "backup_repositories",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup git repositories data ?"
|
"en": "Should gitlab backup git repositories data ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_repositories",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup builds",
|
"name": "backup_builds",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup CI job output logs ?"
|
"en": "Should gitlab backup CI job output logs ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_builds",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup artifacts",
|
"name": "backup_artifacts",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup CI job artifacts ?"
|
"en": "Should gitlab backup CI job artifacts ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_artifacts",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup lfs",
|
"name": "backup_lfs",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup LFS objects ?"
|
"en": "Should gitlab backup LFS objects ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_lfs",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup registry",
|
"name": "backup_registry",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup container registry images ?"
|
"en": "Should gitlab backup container registry images ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_registry",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Backup pages",
|
"name": "backup_pages",
|
||||||
"ask": {
|
"ask": {
|
||||||
"en": "Should gitlab backup pages content ?"
|
"en": "Should gitlab backup pages content ?"
|
||||||
},
|
},
|
||||||
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
"help": "https://docs.gitlab.com/ce/raketasks/backup_restore.html#excluding-specific-directories-from-the-backup",
|
||||||
"id": "backup_pages",
|
"type": "boolean",
|
||||||
"type": "bool",
|
|
||||||
"default": true
|
"default": true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
"email": "pierre@kayou.io"
|
"email": "pierre@kayou.io"
|
||||||
},
|
},
|
||||||
"requirements": {
|
"requirements": {
|
||||||
"yunohost": ">= 3.5.0"
|
"yunohost": ">= 3.6.0"
|
||||||
},
|
},
|
||||||
"multi_instance": false,
|
"multi_instance": false,
|
||||||
"services": [
|
"services": [
|
||||||
|
|
|
@ -81,27 +81,27 @@ show_config() {
|
||||||
# here you are supposed to read some config file/database/other then print the values
|
# 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_${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"
|
||||||
}
|
}
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue