From d57fed12a3879daa2f4bf00496697c95c29cba74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Magimel?= Date: Thu, 6 Aug 2020 20:04:08 +0200 Subject: [PATCH 01/11] Correct French spelling in the manifest --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 4657b01..d82903d 100644 --- a/manifest.json +++ b/manifest.json @@ -10,7 +10,7 @@ }, "description": { "en": "Strut is a slide editor creating impress.js presentations.", - "fr": "Strut est un éditeur de slide permetant de créer des présentation impress.js." + "fr": "Strut est un éditeur de diapositives permettant de créer des présentations impress.js." }, "maintainer": { "name": "zamentur", From 930aab6caefdc6a4456347d55fe933b7ed0e4ac2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Magimel?= Date: Fri, 7 Aug 2020 20:17:47 +0200 Subject: [PATCH 02/11] Remove the name of the app in the description --- manifest.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manifest.json b/manifest.json index d82903d..58af874 100644 --- a/manifest.json +++ b/manifest.json @@ -9,8 +9,8 @@ "yunohost": ">= 3.5.0" }, "description": { - "en": "Strut is a slide editor creating impress.js presentations.", - "fr": "Strut est un éditeur de diapositives permettant de créer des présentations impress.js." + "en": "Slide editor for creating impress.js presentations.", + "fr": "Éditeur de diapositives permettant de créer des présentations impress.js." }, "maintainer": { "name": "zamentur", From 888779daa6f2b7cda3608c13762e2e1439132931 Mon Sep 17 00:00:00 2001 From: "ljf (zamentur)" Date: Sun, 11 Oct 2020 01:48:43 +0200 Subject: [PATCH 03/11] [fix] version --- manifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifest.json b/manifest.json index 4657b01..0ac8c2f 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name": "Strut", "id": "strut", "packaging_format": 1, - "version": "20171224-1", + "version": "20171224-1~ynh1", "url": "http://strut.io", "license": "AGPL-3.0", "requirements": { From 7f30b2b0b00309ea65de2daacc5504b42bd87877 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Gaspar?= <46165813+ericgaspar@users.noreply.github.com> Date: Tue, 13 Oct 2020 10:02:20 +0200 Subject: [PATCH 04/11] Add badges --- README.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 82bed0a..e415121 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ # Strut for YunoHost -[![Integration level](https://dash.yunohost.org/integration/strut.svg)](https://dash.yunohost.org/appci/app/strut) +[![Integration level](https://dash.yunohost.org/integration/strut.svg)](https://dash.yunohost.org/appci/app/strut) ![](https://ci-apps.yunohost.org/ci/badges/strut.status.svg) ![](https://ci-apps.yunohost.org/ci/badges/strut.maintain.svg) [![Install Strut with YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=strut) > *This package allow you to install Strut quickly and simply on a YunoHost server. If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.* ## Overview -Quick description of this app. +Strut is a simple, online editor that doesn't even require registration to operate. Everything you do is recoverable and re-usable. **Shipped version:** 20171224-1 @@ -31,9 +31,8 @@ Quick description of this app. #### Supported architectures -* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/strut/) +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/strut/) * ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/strut/) -* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/strut%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/strut/) ## Limitations @@ -54,10 +53,8 @@ To avoid to take time to build this html/js app, this package setups a builded v --- -Developers info ----------------- +## Developers info -**Only if you want to use a testing branch for coding, instead of merging directly into master.** Please do your pull request to the [testing branch](https://github.com/YunoHost-Apps/strut_ynh/tree/testing). To try the testing branch, please proceed like that. From db8a3edf0402febbb9e65c7147ca571febd90b01 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 6 Dec 2020 22:27:53 +0100 Subject: [PATCH 05/11] Fix linter warnings --- check_process | 3 --- manifest.json | 6 +++--- scripts/backup | 11 ++++++----- scripts/change_url | 14 +++++++------- scripts/install | 6 +++--- scripts/remove | 4 ++-- scripts/restore | 2 +- scripts/upgrade | 7 ------- 8 files changed, 22 insertions(+), 31 deletions(-) diff --git a/check_process b/check_process index ed5871d..b02e0ff 100644 --- a/check_process +++ b/check_process @@ -14,11 +14,8 @@ upgrade=1 from_commit=f6565f66d82fa077d752226f8b8267018f7b91d8 backup_restore=1 multi_instance=1 - incorrect_path=1 port_already_use=0 change_url=1 -;;; Levels - Level 5=auto ;;; Options Email=ljf+ynh-strut@grimaud.me Notification=down diff --git a/manifest.json b/manifest.json index 80ee397..25da469 100644 --- a/manifest.json +++ b/manifest.json @@ -2,11 +2,11 @@ "name": "Strut", "id": "strut", "packaging_format": 1, - "version": "20171224-1~ynh1", + "version": "20171224-1~ynh2", "url": "http://strut.io", "license": "AGPL-3.0", "requirements": { - "yunohost": ">= 3.5.0" + "yunohost": ">= 3.8.1" }, "description": { "en": "Slide editor for creating impress.js presentations.", @@ -45,7 +45,7 @@ "name": "is_public", "type": "boolean", "ask": { - "en": "Could non member create presentations ?", + "en": "Could non member create presentations?", "fr": "Une personne non membre peut elle créer une présentation ?" }, "default": true diff --git a/scripts/backup b/scripts/backup index deda952..d40b17f 100644 --- a/scripts/backup +++ b/scripts/backup @@ -19,7 +19,7 @@ ynh_abort_if_errors #================================================= # LOAD SETTINGS #================================================= -ynh_script_progression --message="Loading installation settings..." --weight=2 +ynh_print_info --message="Loading installation settings..." app=$YNH_APP_INSTANCE_NAME @@ -27,18 +27,19 @@ domain=$(ynh_app_setting_get --app=$app --key=domain) final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= -# STANDARD BACKUP STEPS +# DECLARE DATA AND CONF FILES TO BACKUP +#================================================= +ynh_print_info --message="Declaring files to be backed up..." + #================================================= # BACKUP THE APP MAIN DIR #================================================= -ynh_script_progression --message="Backing up the main app directory..." ynh_backup --src_path="$final_path" #================================================= # BACKUP THE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Backing up nginx web server configuration..." ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" @@ -46,4 +47,4 @@ ynh_backup --src_path="/etc/nginx/conf.d/$domain.d/$app.conf" # END OF SCRIPT #================================================= -ynh_script_progression --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." --last +ynh_print_info --message="Backup script completed for $app. (YunoHost will then actually copy those files to the archive)." diff --git a/scripts/change_url b/scripts/change_url index 716c7e7..0060203 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -50,23 +50,23 @@ fi #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating nginx web server configuration..." --weight=2 +ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2 nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf -# Change the path in the nginx config file +# Change the path in the NGINX config file if [ $change_path -eq 1 ] then - # Make a backup of the original nginx config file if modified + # Make a backup of the original NGINX config file if modified ynh_backup_if_checksum_is_different --file="$nginx_conf_path" - # Set global variables for nginx helper + # Set global variables for NGINX helper domain="$old_domain" path_url="$new_path" - # Create a dedicated nginx config + # Create a dedicated NGINX config ynh_add_nginx_config fi -# Change the domain for nginx +# Change the domain for NGINX if [ $change_domain -eq 1 ] then # Delete file checksum for the old conf file location @@ -81,7 +81,7 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/install b/scripts/install index 0165f1c..2f026ad 100644 --- a/scripts/install +++ b/scripts/install @@ -65,9 +65,9 @@ ynh_secure_remove --file="$tmp_dir" #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Configuring nginx web server..." --weight=4 +ynh_script_progression --message="Configuring NGINX web server..." --weight=4 -# Create a dedicated nginx config +# Create a dedicated NGINX config ynh_add_nginx_config #================================================= @@ -105,7 +105,7 @@ fi #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/remove b/scripts/remove index 2ac0895..af1284c 100644 --- a/scripts/remove +++ b/scripts/remove @@ -32,9 +32,9 @@ ynh_secure_remove --file="$final_path" #================================================= # REMOVE NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Removing nginx web server configuration..." +ynh_script_progression --message="Removing NGINX web server configuration..." -# Remove the dedicated nginx config +# Remove the dedicated NGINX config ynh_remove_nginx_config #================================================= diff --git a/scripts/restore b/scripts/restore index f3af36e..13aa9e5 100644 --- a/scripts/restore +++ b/scripts/restore @@ -66,7 +66,7 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750 #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload diff --git a/scripts/upgrade b/scripts/upgrade index 27f6196..9be6c06 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -65,13 +65,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors -#================================================= -# CHECK THE PATH -#================================================= - -# Normalize the URL path syntax -path_url=$(ynh_normalize_url_path --path_url=$path_url) - #================================================= # STANDARD UPGRADE STEPS #================================================= From 423dc424370fc63dab16be242546a8360724921d Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Thu, 25 Feb 2021 15:26:48 +0100 Subject: [PATCH 06/11] Set new permission --- pull_request_template.md | 12 ++---------- scripts/install | 4 ++-- scripts/upgrade | 22 +++++++++------------- 3 files changed, 13 insertions(+), 25 deletions(-) diff --git a/pull_request_template.md b/pull_request_template.md index b71dd62..0a198cf 100644 --- a/pull_request_template.md +++ b/pull_request_template.md @@ -11,14 +11,6 @@ - [ ] Upgrade from last version tested. - [ ] Can be reviewed and tested. -## Validation +## Package_check results --- -*Minor decision* -- **Upgrade previous version** : -- [ ] **Code review** : -- [ ] **Approval (LGTM)** : -- [ ] **Approval (LGTM)** : -- **CI succeeded** : -[![Build Status](https://ci-apps-hq.yunohost.org/jenkins/job/strut_ynh%20PR-NUM-/badge/icon)](https://ci-apps-hq.yunohost.org/jenkins/job/strut_ynh%20PR-NUM-/) -*Please replace '-NUM-' in this link by the PR number.* -When the PR is marked as ready to merge, you have to wait for 3 days before really merging it. +* An automatic package_check will be launch at https://ci-apps-dev.yunohost.org/, when you add a specific comment to your Pull Request: "!testme", "!gogogadgetoci" or "By the power of systemd, I invoke The Great App CI to test this Pull Request!"* diff --git a/scripts/install b/scripts/install index 2f026ad..04b40bb 100644 --- a/scripts/install +++ b/scripts/install @@ -94,12 +94,12 @@ find "$final_path" -type d -print0 | xargs -0 chmod 750 #================================================= # SETUP SSOWAT #================================================= -ynh_script_progression --message="Configuring SSOwat..." +ynh_script_progression --message="Configuring permissions..." # Make app public if necessary if [ $is_public -eq 1 ] then - ynh_app_setting_set --app=$app --key=skipped_uris --value="/" + ynh_permission_update --permission="main" --add="visitors" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 9be6c06..449c920 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -51,6 +51,13 @@ if [ "${version}" = "20160501-7" ]; then fi fi +# Cleaning legacy permissions +if ynh_legacy_permissions_exists; then + ynh_legacy_permissions_delete_all + + ynh_app_setting_delete --app=$app --key=is_public +fi + #================================================= # BACKUP BEFORE UPGRADE THEN ACTIVE TRAP #================================================= @@ -88,7 +95,7 @@ fi #================================================= # NGINX CONFIGURATION #================================================= -ynh_script_progression --message="Upgrading nginx web server configuration..." +ynh_script_progression --message="Upgrading NGINX web server configuration..." # Create a dedicated nginx config ynh_add_nginx_config @@ -117,21 +124,10 @@ chown -R root:www-data "$final_path" chmod -R 640 "$final_path" find "$final_path" -type d -print0 | xargs -0 chmod 750 -#================================================= -# SETUP SSOWAT -#================================================= -ynh_script_progression --message="Upgrading SSOwat configuration..." --weight=5 - -# Make app public if necessary -if [ $is_public -eq 1 ] -then - ynh_app_setting_set --app=$app --key=skipped_uris --value="/" -fi - #================================================= # RELOAD NGINX #================================================= -ynh_script_progression --message="Reloading nginx web server..." +ynh_script_progression --message="Reloading NGINX web server..." ynh_systemd_action --service_name=nginx --action=reload From e3a85583098d976f0314963f9ff26ae69c93803f Mon Sep 17 00:00:00 2001 From: Yunohost-Bot Date: Mon, 15 Mar 2021 00:22:49 +0100 Subject: [PATCH 07/11] [autopatch] Missing ynh_abort_if_errors in change_url scripts --- scripts/change_url | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/change_url b/scripts/change_url index 0060203..c6b3bcb 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -8,6 +8,7 @@ # source _common.sh source /usr/share/yunohost/helpers +ynh_abort_if_errors #================================================= # RETRIEVE ARGUMENTS From caf1e0d6bcdb1ddce4dc5384164935fb34c94354 Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Fri, 26 Mar 2021 13:52:34 +0100 Subject: [PATCH 08/11] Cleaning up --- README_fr.md | 7 +++---- manifest.json | 14 +------------- 2 files changed, 4 insertions(+), 17 deletions(-) diff --git a/README_fr.md b/README_fr.md index 30ff08f..35cdabf 100644 --- a/README_fr.md +++ b/README_fr.md @@ -1,7 +1,7 @@ # Strut pour YunoHost [![Niveau d'integration](https://dash.yunohost.org/integration/strut.svg)](https://dash.yunohost.org/appci/app/strut) -[![Installer Strut avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.png)](https://install-app.yunohost.org/?app=strut) +[![Installer Strut avec YunoHost](https://install-app.yunohost.org/install-with-yunohost.svg)](https://install-app.yunohost.org/?app=strut) *[Read this readme in english.](./README.md)* @@ -62,10 +62,9 @@ Voici la version compilée https://github.com/tantaman/Strut/commits/6761b141ee7 * Site web de YunoHost : https://yunohost.org/ --- -Informations pour les développeurs ----------------- -**Seulement si vous voulez utiliser une branche de test pour le codage, au lieu de fusionner directement dans la banche principale.** +## Informations pour les développeurs + Merci de faire vos pull request sur la [branche testing](https://github.com/YunoHost-Apps/strut_ynh/tree/testing). Pour essayer la branche testing, procédez comme suit. diff --git a/manifest.json b/manifest.json index e6b50ad..d5dc1fe 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "url": "http://strut.io", "license": "AGPL-3.0", "requirements": { - "yunohost": ">= 3.8.1" + "yunohost": ">= 4.1.7" }, "description": { "en": "Slide editor for creating impress.js presentations.", @@ -25,29 +25,17 @@ { "name": "domain", "type": "domain", - "ask": { - "en": "Choose a domain for Strut", - "fr": "Choisissez un nom de domaine pour Strut" - }, "example": "example.com" }, { "name": "path", "type": "path", - "ask": { - "en": "Choose a path for Strut", - "fr": "Choisissez l'adresse pour Strut" - }, "example": "/strut", "default": "/strut" }, { "name": "is_public", "type": "boolean", - "ask": { - "en": "Could non member create presentations?", - "fr": "Une personne non membre peut elle créer une présentation ?" - }, "default": true } From 5598747c5a92d2f5b4883be506708574d679246f Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 11 Apr 2021 19:24:45 +0200 Subject: [PATCH 09/11] Fix badges --- README.md | 4 ++-- README_fr.md | 5 ++--- check_process | 1 - manifest.json | 2 -- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 87df1e6..7ed1b4c 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,8 @@ If configuration is needed, feel free to contribute. #### Supported architectures -* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/strut/) -* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/strut/) +* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/strut.svg)](https://ci-apps.yunohost.org/ci/apps/strut/) +* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/strut.svg)](https://ci-apps-arm.yunohost.org/ci/apps/strut/) ## Limitations No import/export from/to OpenDocument or pptx. diff --git a/README_fr.md b/README_fr.md index 35cdabf..e7face5 100644 --- a/README_fr.md +++ b/README_fr.md @@ -35,9 +35,8 @@ S'il y a une configuration possible, sentez vous libre d'y contribuer. #### Architectures supportées -* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/strut/) -* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/strut%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/strut/) -* Jessie x86-64b - [![Build Status](https://ci-stretch.nohost.me/ci/logs/strut%20%28Apps%29.svg)](https://ci-stretch.nohost.me/ci/apps/strut/) +* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/strut.svg)](https://ci-apps.yunohost.org/ci/apps/strut/) +* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/strut.svg)](https://ci-apps-arm.yunohost.org/ci/apps/strut/) ## Limitations diff --git a/check_process b/check_process index b02e0ff..79ac566 100644 --- a/check_process +++ b/check_process @@ -14,7 +14,6 @@ upgrade=1 from_commit=f6565f66d82fa077d752226f8b8267018f7b91d8 backup_restore=1 multi_instance=1 - port_already_use=0 change_url=1 ;;; Options Email=ljf+ynh-strut@grimaud.me diff --git a/manifest.json b/manifest.json index d5dc1fe..95a7d1c 100644 --- a/manifest.json +++ b/manifest.json @@ -38,8 +38,6 @@ "type": "boolean", "default": true } - - ] } } From 18b9ad9b331d4a910f6c87c05dc98ae9a927bd8e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 24 Apr 2021 23:51:53 +0200 Subject: [PATCH 10/11] Fix links --- README.md | 2 +- README_fr.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7ed1b4c..e2b89dc 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ *[Lire ce readme en français.](./README_fr.md)* > *This package allow you to install Strut quickly and simply on a YunoHost server. -If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to know how to install and enjoy it.* +If you don't have YunoHost, please see [here](https://yunohost.org/install) to know how to install and enjoy it.* ## Overview Strut is a simple, online editor that doesn't even require registration to operate. Everything you do is recoverable and re-usable. diff --git a/README_fr.md b/README_fr.md index e7face5..408fde6 100644 --- a/README_fr.md +++ b/README_fr.md @@ -6,7 +6,7 @@ *[Read this readme in english.](./README.md)* > *Ce package vous permet d'installer Strut rapidement et simplement sur un serveur YunoHost. -Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour savoir comment l'installer et en profiter* +Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/install) pour savoir comment l'installer et en profiter* ## Vue d'ensemble Strut est un éditeur WEB de présentations fonctionnant en HTML/JS. Tout se passe en local. Il fonctinne grâce à [impress.js](http://bartaz.github.com/impress.js/#/bored). From 5c429eea87ef7dc1dc5e28dcb1be4fa26f8099ab Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sat, 1 May 2021 08:29:19 +0200 Subject: [PATCH 11/11] Remove is_public --- scripts/install | 1 - scripts/upgrade | 22 ++++------------------ 2 files changed, 4 insertions(+), 19 deletions(-) diff --git a/scripts/install b/scripts/install index 04b40bb..07dac7c 100644 --- a/scripts/install +++ b/scripts/install @@ -44,7 +44,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=2 ynh_app_setting_set --app=$app --key=domain --value=$domain ynh_app_setting_set --app=$app --key=path --value=$path_url -ynh_app_setting_set --app=$app --key=is_public --value=$is_public #================================================= # STANDARD MODIFICATIONS diff --git a/scripts/upgrade b/scripts/upgrade index 449c920..5810d25 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -18,7 +18,6 @@ app=$YNH_APP_INSTANCE_NAME domain=$(ynh_app_setting_get --app=$app --key=domain) path_url=$(ynh_app_setting_get --app=$app --key=path) -is_public=$(ynh_app_setting_get --app=$app --key=is_public) final_path=$(ynh_app_setting_get --app=$app --key=final_path) #================================================= @@ -32,23 +31,10 @@ upgrade_type=$(ynh_check_app_version_changed) #================================================= ynh_script_progression --message="Ensuring downward compatibility..." -if [ "${version}" = "20160501-7" ]; then - public_site=$(ynh_app_setting_get --app=$app --key=public_site) - # Fix is_public as a boolean value - if [ "$public_site" = "Yes" ]; then - ynh_app_setting_set --app=$app --key=is_public --value=1 - is_public=1 - elif [ "$public_site" = "No" ]; then - ynh_app_setting_set --app=$app --key=is_public --value=0 - is_public=0 - fi - ynh_app_setting_delete $app public_site - - # If final_path doesn't exist, create it - if [ -z "$final_path" ]; then - final_path=/var/www/$app - ynh_app_setting_set --app=$app --key=final_path --value=$final_path - fi +# If final_path doesn't exist, create it +if [ -z "$final_path" ]; then + final_path=/var/www/$app + ynh_app_setting_set --app=$app --key=final_path --value=$final_path fi # Cleaning legacy permissions