mirror of
https://github.com/YunoHost-Apps/firefly-iii_ynh.git
synced 2024-09-03 18:36:13 +02:00
No option for force upgrade to user
This commit is contained in:
parent
94859076b5
commit
6bb42aee0d
4 changed files with 5 additions and 14 deletions
|
@ -7,7 +7,6 @@
|
|||
path="/path" (PATH)
|
||||
admin="john" (USER)
|
||||
is_public=1 (PUBLIC|public=1|private=0)
|
||||
update=0
|
||||
; Checks
|
||||
pkg_linter=1
|
||||
setup_sub_dir=1
|
||||
|
|
|
@ -57,15 +57,7 @@
|
|||
"fr": "Est-ce une application publique ?"
|
||||
},
|
||||
"default": true
|
||||
},
|
||||
{
|
||||
"name": "update",
|
||||
"type": "boolean",
|
||||
"ask": {
|
||||
"en": "Making this option to true will give you an option to force upgrade to new version without the package being updated to that version. WARNING: This can be risky and break your app if specific version have additional steps than noraml upgrade. Keep the option false, if you are not sure."
|
||||
},
|
||||
"default": false
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ admin=$YNH_APP_ARG_ADMIN
|
|||
is_public=$YNH_APP_ARG_IS_PUBLIC
|
||||
random_key=$(ynh_string_random --length=32)
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
update=$YNH_APP_ARG_UPDATE
|
||||
update=1
|
||||
app=$YNH_APP_INSTANCE_NAME
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -26,7 +26,7 @@ db_name=$(ynh_app_setting_get --app=$app --key=db_name)
|
|||
db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd)
|
||||
random_key=$(ynh_app_setting_get --app=$app --key=random_key)
|
||||
email=$(ynh_user_get_info --username=$admin --key=mail)
|
||||
update=$(ynh_app_setting_get --app=$app --key=update)
|
||||
update=$(ynh_app_setting_get --app=$app --key=update)
|
||||
|
||||
#=================================================
|
||||
# CHECK VERSION
|
||||
|
@ -95,10 +95,10 @@ then
|
|||
pushd "$final_path"
|
||||
if [ $update -eq 1 ]
|
||||
then
|
||||
git fetch --tags
|
||||
git fetch origin tag $latest_tag --no-tags
|
||||
git checkout $latest_tag
|
||||
else
|
||||
git fetch --tags
|
||||
git fetch origin tag $tag --no-tags
|
||||
git checkout $tag
|
||||
fi
|
||||
ynh_secure_remove bootstrap/cache/*
|
||||
|
|
Loading…
Add table
Reference in a new issue