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

Merge pull request #114 from YunoHost-Apps/testing

Upgrade to 1.3.2~ynh1
This commit is contained in:
yalh76 2021-08-25 19:00:54 +02:00 committed by GitHub
commit 87155dea09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 21 deletions

View file

@ -17,7 +17,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
A decentralized and federated platform to organize events
**Shipped version:** 1.2.3~ynh1
**Shipped version:** 1.3.2~ynh1
**Demo:** https://demo.mobilizon.org
@ -35,6 +35,7 @@ A decentralized and federated platform to organize events
* Other infos that people should be aware of, such as:
* Configuration can be made in the Mobilizon administration panel.
## Documentation and resources
* Official app website: https://joinmobilizon.org/

View file

@ -13,7 +13,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour
Une plateforme décentralisée et fédérée pour organiser des événements
**Version incluse :** 1.2.3~ynh1
**Version incluse :** 1.3.2~ynh1
**Démo :** https://demo.mobilizon.org
@ -31,6 +31,7 @@ Une plateforme décentralisée et fédérée pour organiser des événements
* Other infos that people should be aware of, such as:
* Configuration can be made in the Mobilizon administration panel.
## Documentations et ressources
* Site officiel de l'app : https://joinmobilizon.org/

View file

@ -20,6 +20,8 @@
upgrade=1 from_commit=215b20b0d35178a2c3405a7e3239eba81e22c060
# 1.2.2~ynh1
upgrade=1 from_commit=b63c7833f80de56bbc4a255ddda3b865a5637afc
# 1.2.3~ynh1
upgrade=1 from_commit=42d479d2cc5bcdc40806ac01802d8eac9df5b2ea
backup_restore=1
multi_instance=1
port_already_use=0
@ -34,3 +36,5 @@ Notification=all
name=1.1.4~ynh1
; commit=b63c7833f80de56bbc4a255ddda3b865a5637afc
name=1.2.2~ynh1
; commit=42d479d2cc5bcdc40806ac01802d8eac9df5b2ea
name=1.2.3~ynh1

View file

@ -1,7 +1,7 @@
SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/1.2.3/mobilizon-1.2.3.tar.gz
SOURCE_SUM=4025bf5cee811987b0bf55b1dac88621544d3d2bcd1b02100049e9f63bafb8ad
SOURCE_URL=https://framagit.org/framasoft/mobilizon/-/archive/1.3.2/mobilizon-1.3.2.tar.gz
SOURCE_SUM=74af9537ddd3ab4f549ee67e6e9b9b67946cf687c6f325b53947741348105e0a
SOURCE_SUM_PRG=sha256sum
SOURCE_FORMAT=tar.gz
SOURCE_IN_SUBDIR=true
SOURCE_FILENAME=mobilizon-1.2.3.tar.gz
SOURCE_FILENAME=mobilizon-1.3.2.tar.gz
SOURCE_EXTRACT=true

View file

@ -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.2.3~ynh1",
"version": "1.3.2~ynh1",
"url": "https://joinmobilizon.org/",
"upstream": {
"license": "AGPL-3.0-or-later",

View file

@ -73,7 +73,7 @@ ynh_app_setting_set --app=$app --key=port --value=$port
#=================================================
ynh_script_progression --message="Installing dependencies..."
ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
@ -163,9 +163,9 @@ config="$final_path/live/config/runtime.exs"
pushd $final_path/live/js
ynh_use_nodejs
ynh_script_progression --message="Installing NodeJS dependencies (this is going to take a while...)"
sudo -u $app env PATH=$PATH yarn install
ynh_exec_warn_less sudo -u $app env PATH=$PATH yarn install
ynh_script_progression --message="Building NodeJS application (this is going to take a while...)"
sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build
ynh_exec_warn_less sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build
popd
ynh_secure_remove --file="$final_path/live/js"

View file

@ -101,7 +101,7 @@ chown -R $app:$app "$datadir"
ynh_script_progression --message="Reinstalling dependencies..."
# Define and install dependencies
ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION

View file

@ -154,13 +154,6 @@ if [ -z "$datadir" ]; then
ynh_secure_remove --file="$final_path/$app/uploads"
fi
if [ ! -f "$final_path/$app/config/runtime.exs" ]; then
ynh_delete_file_checksum --file="$final_path/$app/config/prod.secret.exs"
mv "$final_path/$app/config/prod.secret.exs" "$final_path/$app/config/runtime.exs"
ynh_replace_string --match_string="server: true," --replace_string="" --target_file="$final_path/$app/config/runtime.exs"
ynh_store_file_checksum --file="$final_path/$app/config/runtime.exs"
fi
if ynh_version_gt "1.2.3~ynh1" "${previous_version}" ; then
ynh_script_progression --message="Upgrade to 1.2.3~ynh1..."
ynh_delete_file_checksum --file="$final_path/$app/config/runtime.exs"
@ -168,6 +161,14 @@ if ynh_version_gt "1.2.3~ynh1" "${previous_version}" ; then
ynh_store_file_checksum --file="$final_path/live/config/runtime.exs"
fi
if [ ! -f "$final_path/live/config/runtime.exs" ]; then
ynh_delete_file_checksum --file="$final_path/$app/config/prod.secret.exs"
ynh_delete_file_checksum --file="$final_path/live/config/prod.secret.exs"
mv "$final_path/live/config/prod.secret.exs" "$final_path/live/config/runtime.exs"
ynh_replace_string --match_string="server: true," --replace_string="" --target_file="$final_path/live/config/runtime.exs"
ynh_store_file_checksum --file="$final_path/live/config/runtime.exs"
fi
#=================================================
# CREATE DEDICATED USER
#=================================================
@ -220,7 +221,7 @@ ynh_add_nginx_config
#=================================================
ynh_script_progression --message="Upgrading dependencies..."
ynh_install_app_dependencies $pkg_dependencies
ynh_exec_warn_less ynh_install_app_dependencies $pkg_dependencies
ynh_install_nodejs --nodejs_version=$NODEJS_VERSION
@ -262,9 +263,9 @@ chown -R $app:$app "$datadir"
pushd $final_path/live/js
ynh_use_nodejs
ynh_script_progression --message="Installing NodeJS dependencies (this is going to take a while...)"
sudo -u $app env PATH=$PATH yarn install
ynh_exec_warn_less sudo -u $app env PATH=$PATH yarn install
ynh_script_progression --message="Building NodeJS application (this is going to take a while...)"
sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build
ynh_exec_warn_less sudo -u $app env PATH=$PATH NODE_BUILD_MEMORY=1024 yarn run build
sudo -u $app env PATH=$PATH yarn cache clean --all
popd