diff --git a/README.md b/README.md index 769efd4..271c05b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # Mobilizon for YunoHost [![Integration level](https://dash.yunohost.org/integration/mobilizon.svg)](https://dash.yunohost.org/appci/app/mobilizon) ![](https://ci-apps.yunohost.org/ci/badges/mobilizon.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/mobilizon.maintain.svg) -[![Install Mobilizon with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=mobilizon) +[![Install Mobilizon with YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=mobilizon) > *This package allows you to install Mobilizon quickly and simply on a YunoHost server. If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/install) to learn how to install it.* diff --git a/check_process b/check_process index 34b50c5..4a80164 100644 --- a/check_process +++ b/check_process @@ -18,6 +18,8 @@ upgrade=1 from_commit=185cc16e516076e340cca149e8e9140a8762e22e # 0.1.0-2019-12-28~ynh1 upgrade=1 from_commit=6b77f268d4e7e2cd525e11e11f3ed5a5162d0bd2 + # 1.0.0~ynh1 + upgrade=1 from_commit=ac87692da6eaff71f40e3069c7bc6129eddba5e6 backup_restore=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. @@ -35,4 +37,5 @@ Notification=all name=0.1.0-2019-05-15~ynh1 ; commit=6b77f268d4e7e2cd525e11e11f3ed5a5162d0bd2 name=0.1.0-2019-12-28~ynh1 - + ; commit=ac87692da6eaff71f40e3069c7bc6129eddba5e6 + name=1.0.0~ynh1 diff --git a/conf/app.src b/conf/app.src index 6c7df20..6bbab02 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,6 +1,6 @@ -SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/1.0.0/mobilizon-1.0.0.tar.gz -SOURCE_SUM=a66712b859b923403945ad3e1e05f3ef537c7eb2a598f511dd99018ee4c06feb +SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/1.0.3/mobilizon-1.0.3.tar.gz +SOURCE_SUM=5fe588f3567a90c82be8ac1289f836ee2b98b446033c1ca8f9293fd2145441c5 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=tar.gz SOURCE_IN_SUBDIR=true -SOURCE_FILENAME=mobilizon-1.0.0.tar.gz +SOURCE_FILENAME=mobilizon-1.0.3.tar.gz diff --git a/manifest.json b/manifest.json index 8e832cf..52aafdb 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "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" }, - "version": "1.0.0~ynh1", + "version": "1.0.3~ynh1", "url": "https://joinmobilizon.org/", "license": "AGPL-3.0-or-later", "maintainer": { diff --git a/scripts/_common.sh b/scripts/_common.sh index da4bfa5..9c7a7b7 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -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" extra_pkg_dependencies="elixir esl-erlang" -NODEJS_VERSION=12 +NODEJS_VERSION=14 #================================================= # PERSONAL HELPERS diff --git a/scripts/upgrade b/scripts/upgrade index 14fcdfe..bda742f 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -178,6 +178,11 @@ ynh_script_progression --message="Upgrading 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 lsb_name="$(lsb_release --codename --short)" @@ -226,6 +231,17 @@ pushd $final_path/$app sudo -u "$app" MIX_ENV=prod mix ecto.migrate 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 #=================================================