1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/weblate_ynh.git synced 2024-10-01 13:35:04 +02:00

upgrade to 2.20

This commit is contained in:
Jean-Baptiste Holcroft 2018-10-16 22:37:09 +02:00
parent 9f9814c2fa
commit c38e8df3f4
5 changed files with 6 additions and 6 deletions

View file

@ -19,7 +19,7 @@
setup_private=1 setup_private=1
setup_public=1 setup_public=1
upgrade=1 upgrade=1
# upgrade=1 from_commit=f2c1f14df484d727f1918821b6ade3887f77ec40 upgrade=1 from_commit=f14080cbe65c8b2a8e0cda1c34affe0123a6540d
backup_restore=1 backup_restore=1
multi_instance=1 multi_instance=1
incorrect_path=1 incorrect_path=1
@ -42,6 +42,6 @@
Email=jean-baptiste@holcroft.fr Email=jean-baptiste@holcroft.fr
Notification=all Notification=all
;;; Upgrade options ;;; Upgrade options
; commit=f2c1f14df484d727f1918821b6ade3887f77ec40 ; commit=f14080cbe65c8b2a8e0cda1c34affe0123a6540d
name=Upgrade from 2.20 name=Upgrade from 3.1.1
manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=1&github_account=fake&github_token=fake manifest_arg=domain=DOMAIN&path=PATH&admin=USER&is_public=1&github_account=fake&github_token=fake

View file

@ -8,7 +8,7 @@
"description": { "description": {
"en": "A translation platform using Git and Python" "en": "A translation platform using Git and Python"
}, },
"version": "3.2.0~ynh1", "version": "3.2~ynh1",
"url": "https://weblate.org", "url": "https://weblate.org",
"license": "AGPL-3.0", "license": "AGPL-3.0",
"maintainer": { "maintainer": {

View file

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
current_version="3.2.0" current_version="3.2"
ynh_check_global_uwsgi_config () { ynh_check_global_uwsgi_config () {
uwsgi --version || ynh_die "You need to add uwsgi (and appropriate plugin) as a dependency" uwsgi --version || ynh_die "You need to add uwsgi (and appropriate plugin) as a dependency"

View file

@ -107,7 +107,7 @@ fi
# Weblate requires an update to 3.0 before 3.1 # Weblate requires an update to 3.0 before 3.1
# the upgrade hook will launch this script again to make sure it works # the upgrade hook will launch this script again to make sure it works
if [[ -z "$migration311" ]] if [[ -z "$migration311" && $previous_version = "2.20" ]]
then then
# $migration311 is not set, version is <3.0 # $migration311 is not set, version is <3.0
migration311="two_steps_upgrade_3.0to3.1-needed" migration311="two_steps_upgrade_3.0to3.1-needed"