mirror of
https://github.com/YunoHost-Apps/jenkins_ynh.git
synced 2024-09-03 19:26:18 +02:00
commit
0dcc754030
3 changed files with 1 additions and 22 deletions
|
@ -12,7 +12,7 @@
|
|||
setup_public=1
|
||||
upgrade=1
|
||||
# 2.150.2~ynh2
|
||||
upgrade=1 from_commit=29141b702f2954e0f72925121aea82a7fa3fc118
|
||||
# upgrade=1 from_commit=29141b702f2954e0f72925121aea82a7fa3fc118
|
||||
# 2.263.1~ynh1
|
||||
upgrade=1 from_commit=0e1aae7be82034650e2c1f6c1ad6d68a41b80176
|
||||
backup_restore=1
|
||||
|
|
|
@ -29,29 +29,17 @@
|
|||
{
|
||||
"name": "domain",
|
||||
"type": "domain",
|
||||
"ask": {
|
||||
"en": "Choose a domain for Jenkins",
|
||||
"fr": "Choisissez un domaine pour Jenkins"
|
||||
},
|
||||
"example": "example.com"
|
||||
},
|
||||
{
|
||||
"name": "path",
|
||||
"type": "path",
|
||||
"ask": {
|
||||
"en": "Choose a path for Jenkins",
|
||||
"fr": "Choisissez un chemin pour Jenkins"
|
||||
},
|
||||
"example": "/jenkins",
|
||||
"default": "/jenkins"
|
||||
},
|
||||
{
|
||||
"name": "is_public",
|
||||
"type": "boolean",
|
||||
"ask": {
|
||||
"en": "Is it a public application?",
|
||||
"fr": "Est-ce une application publique ?"
|
||||
},
|
||||
"default": true,
|
||||
"help": {
|
||||
"en": "A public Jenkins will be accessible by everyone unless you configure the security into jenkins admin panel.",
|
||||
|
|
|
@ -36,15 +36,6 @@ upgrade_type=$(ynh_check_app_version_changed)
|
|||
#=================================================
|
||||
ynh_script_progression --message="Ensuring downward compatibility..." --weight=2
|
||||
|
||||
# Fix is_public as a boolean
|
||||
if [ "$is_public" = "Yes" ]; then
|
||||
ynh_app_setting_set --app=$app --key=is_public --value=1
|
||||
is_public=1
|
||||
elif [ "$is_public" = "No" ]; then
|
||||
ynh_app_setting_set --app=$app --key=is_public --value=0
|
||||
is_public=0
|
||||
fi
|
||||
|
||||
# If overwrite_nginx doesn't exist, create it
|
||||
if [ -z "$overwrite_nginx" ]; then
|
||||
overwrite_nginx=1
|
||||
|
|
Loading…
Add table
Reference in a new issue