1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/jenkins_ynh.git synced 2024-09-03 19:26:18 +02:00

Merge pull request #38 from YunoHost-Apps/testing

Level6
This commit is contained in:
yalh76 2021-04-08 08:25:06 +02:00 committed by GitHub
commit 0dcc754030
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1 additions and 22 deletions

View file

@ -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

View file

@ -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.",

View file

@ -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