1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snweb_ynh.git synced 2024-09-03 20:26:22 +02:00

Merge pull request #10 from YunoHost-Apps/fix_upgrade

Fix upgrade script
This commit is contained in:
Fabian Wilkens 2021-05-13 18:12:48 +02:00 committed by GitHub
commit b45ae32d97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -21,7 +21,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
The Standard Notes Web App. An end-to-end encrypted note-taking app. Web, Mac, Windows, Linux, iOS, and Android.
**Shipped version:** 3.22.8~ynh2
**Shipped version:** 3.6.8~ynh2
**Demo:** https://standardnotes.org/demo

View file

@ -13,7 +13,7 @@ If you don't have YunoHost, please consult [the guide](https://yunohost.org/#/in
**Version incluse:** 3.22.8~ynh2
**Version incluse:** 3.6.8~ynh2
**Démo:** https://standardnotes.org/demo

View file

@ -5,7 +5,7 @@
"description": {
"en": "The Standard Notes Web App. An end-to-end encrypted note-taking app. Web, Mac, Windows, Linux, iOS, and Android."
},
"version": "3.6.8~ynh1",
"version": "3.6.8~ynh2",
"url": "https://github.com/standardnotes/web",
"upstream": {
"license": "AGPL-3.0-or-later",

View file

@ -23,6 +23,8 @@ final_path=$(ynh_app_setting_get --app=$app --key=final_path)
port=$(ynh_app_setting_get --app=$app --key=port)
snserver_domain=$(ynh_app_setting_get --app=$app --key=snserver_domain)
config_file="$final_path/live/.env"
#=================================================
# CHECK VERSION
#=================================================
@ -53,7 +55,7 @@ if [ -z "$final_path" ]; then
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
fi
if ynh_compare_current_package_version --comparison lt --version "3.6.8~ynh1"
if ynh_compare_current_package_version --comparison lt --version "3.6.8~ynh2"
then
# Add variables to .env config file
echo -e "\
@ -162,7 +164,6 @@ popd
#=================================================
# MODIFY A CONFIG FILE
#=================================================
config_file="$final_path/live/.env"
if [ "$upgrade_type" == "UPGRADE_APP" ]
then
ynh_script_progression --message="Modifying a config file..." --weight=2