mirror of
https://github.com/YunoHost-Apps/mobilizon_ynh.git
synced 2024-09-03 19:46:19 +02:00
Merge pull request #72 from oncletom/patch-1
Upgrade to mobilizon@1.0.3
This commit is contained in:
commit
f2032a4510
5 changed files with 25 additions and 6 deletions
|
@ -18,6 +18,8 @@
|
||||||
upgrade=1 from_commit=185cc16e516076e340cca149e8e9140a8762e22e
|
upgrade=1 from_commit=185cc16e516076e340cca149e8e9140a8762e22e
|
||||||
# 0.1.0-2019-12-28~ynh1
|
# 0.1.0-2019-12-28~ynh1
|
||||||
upgrade=1 from_commit=6b77f268d4e7e2cd525e11e11f3ed5a5162d0bd2
|
upgrade=1 from_commit=6b77f268d4e7e2cd525e11e11f3ed5a5162d0bd2
|
||||||
|
# 1.0.0~ynh1
|
||||||
|
upgrade=1 from_commit=ac87692da6eaff71f40e3069c7bc6129eddba5e6
|
||||||
backup_restore=1
|
backup_restore=1
|
||||||
multi_instance=1
|
multi_instance=1
|
||||||
# This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version.
|
# This test is no longer necessary since the version 2.7 (PR: https://github.com/YunoHost/yunohost/pull/304), you can still do it if your app could be installed with this version.
|
||||||
|
@ -35,4 +37,5 @@ Notification=all
|
||||||
name=0.1.0-2019-05-15~ynh1
|
name=0.1.0-2019-05-15~ynh1
|
||||||
; commit=6b77f268d4e7e2cd525e11e11f3ed5a5162d0bd2
|
; commit=6b77f268d4e7e2cd525e11e11f3ed5a5162d0bd2
|
||||||
name=0.1.0-2019-12-28~ynh1
|
name=0.1.0-2019-12-28~ynh1
|
||||||
|
; commit=ac87692da6eaff71f40e3069c7bc6129eddba5e6
|
||||||
|
name=1.0.0~ynh1
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/1.0.0/mobilizon-1.0.0.tar.gz
|
SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/1.0.3/mobilizon-1.0.3.tar.gz
|
||||||
SOURCE_SUM=a66712b859b923403945ad3e1e05f3ef537c7eb2a598f511dd99018ee4c06feb
|
SOURCE_SUM=5fe588f3567a90c82be8ac1289f836ee2b98b446033c1ca8f9293fd2145441c5
|
||||||
SOURCE_SUM_PRG=sha256sum
|
SOURCE_SUM_PRG=sha256sum
|
||||||
SOURCE_FORMAT=tar.gz
|
SOURCE_FORMAT=tar.gz
|
||||||
SOURCE_IN_SUBDIR=true
|
SOURCE_IN_SUBDIR=true
|
||||||
SOURCE_FILENAME=mobilizon-1.0.0.tar.gz
|
SOURCE_FILENAME=mobilizon-1.0.3.tar.gz
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
"en": "A decentralized and federated platform to organize events",
|
"en": "A decentralized and federated platform to organize events",
|
||||||
"fr": "Une plateforme décentralisée et fédérée pour organiser des événements"
|
"fr": "Une plateforme décentralisée et fédérée pour organiser des événements"
|
||||||
},
|
},
|
||||||
"version": "1.0.0~ynh1",
|
"version": "1.0.3~ynh1",
|
||||||
"url": "https://joinmobilizon.org/",
|
"url": "https://joinmobilizon.org/",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"maintainer": {
|
"maintainer": {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
pkg_dependencies="build-essential inotify-tools postgresql postgresql-client postgresql-contrib postgis postgresql-postgis-scripts git curl unzip gnupg openssl make gcc libc-dev argon2 imagemagick webp gifsicle jpegoptim optipng pngquant cmake"
|
pkg_dependencies="build-essential inotify-tools postgresql postgresql-client postgresql-contrib postgis postgresql-postgis-scripts git curl unzip gnupg openssl make gcc libc-dev argon2 imagemagick webp gifsicle jpegoptim optipng pngquant cmake"
|
||||||
extra_pkg_dependencies="elixir esl-erlang"
|
extra_pkg_dependencies="elixir esl-erlang"
|
||||||
|
|
||||||
NODEJS_VERSION=12
|
NODEJS_VERSION=14
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# PERSONAL HELPERS
|
# PERSONAL HELPERS
|
||||||
|
|
|
@ -178,6 +178,11 @@ ynh_script_progression --message="Upgrading dependencies..."
|
||||||
|
|
||||||
ynh_install_app_dependencies $pkg_dependencies
|
ynh_install_app_dependencies $pkg_dependencies
|
||||||
|
|
||||||
|
if ynh_version_gt "1.0.3~ynh1" "${previous_version}" ; then
|
||||||
|
ynh_script_progression --message="Mobilizon v1.0.3: Remove previous NodeJS"
|
||||||
|
ynh_remove_nodejs
|
||||||
|
fi
|
||||||
|
|
||||||
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
|
||||||
|
|
||||||
lsb_name="$(lsb_release --codename --short)"
|
lsb_name="$(lsb_release --codename --short)"
|
||||||
|
@ -226,6 +231,17 @@ pushd $final_path/$app
|
||||||
sudo -u "$app" MIX_ENV=prod mix ecto.migrate
|
sudo -u "$app" MIX_ENV=prod mix ecto.migrate
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
#=================================================
|
||||||
|
# RUN APP MIGRATIONS
|
||||||
|
#=================================================
|
||||||
|
|
||||||
|
if ynh_version_gt "1.0.3~ynh1" "${previous_version}" ; then
|
||||||
|
ynh_script_progression --message="Mobilizon v1.0.3: Refresh remote profiles to save avatars locally"
|
||||||
|
pushd $final_path/$app
|
||||||
|
sudo -u "$app" MIX_ENV=prod mix mobilizon.actors.refresh --all
|
||||||
|
popd
|
||||||
|
fi
|
||||||
|
|
||||||
#=================================================
|
#=================================================
|
||||||
# STORE THE CONFIG FILE CHECKSUM
|
# STORE THE CONFIG FILE CHECKSUM
|
||||||
#=================================================
|
#=================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue