diff --git a/README.md b/README.md index 0607ae6..5ac7ff0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ If you don't have YunoHost, please see [here](https://yunohost.org/#/install) to ## Overview Flow-based programming for the Internet of Things. -**Shipped version:** 1.2.7 +**Shipped version:** 1.2.9 ## Screenshots diff --git a/README_fr.md b/README_fr.md index b1b6854..663938a 100644 --- a/README_fr.md +++ b/README_fr.md @@ -11,7 +11,7 @@ Si vous n'avez pas YunoHost, regardez [ici](https://yunohost.org/#/install) pour ## Vue d'ensemble Programmation par flux de données pour l'Internet des objets. -**Version incluse :** 1.2.7 +**Version incluse :** 1.2.9 ## Captures d'écran diff --git a/conf/app.src b/conf/app.src index 93231bf..7f7d1d2 100644 --- a/conf/app.src +++ b/conf/app.src @@ -1,5 +1,5 @@ -SOURCE_URL=https://github.com/node-red/node-red/releases/download/1.2.7/node-red-1.2.7.zip -SOURCE_SUM=d0e47c5c618a733a5cfc650f6226a7013b1e8dd8e4d2291ad3dc03991ac74834 +SOURCE_URL=https://github.com/node-red/node-red/releases/download/1.2.9/node-red-1.2.9.zip +SOURCE_SUM=bed0649f9214b34fef80496b7477b891f4f5d3dc5a767d8622da23875dc93f27 SOURCE_SUM_PRG=sha256sum SOURCE_FORMAT=zip SOURCE_IN_SUBDIR=true diff --git a/manifest.json b/manifest.json index fdf25b0..8dab57b 100644 --- a/manifest.json +++ b/manifest.json @@ -6,7 +6,7 @@ "en": "Flow-based programming for the Internet of Things", "fr": "Programmation par flux de données pour l'Internet des objets" }, - "version": "1.2.7~ynh1", + "version": "1.2.9~ynh1", "url": "https://nodered.org", "license": "Apache-2.0", "maintainer": { diff --git a/scripts/install b/scripts/install index 2cbbf8f..4bcc785 100755 --- a/scripts/install +++ b/scripts/install @@ -154,12 +154,12 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap #================================================= # SETUP SSOWAT #================================================= -ynh_script_progression --message="Configuring SSOwat..." --weight=1 +ynh_script_progression --message="Configuring permissions..." --weight=1 # Make app public if necessary if [ $is_public -eq 0 ] then - ynh_permission_update --permission "main" --remove "visitors" + ynh_permission_update --permission="main" --remove="visitors" fi #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 95070b3..0c82026 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -48,6 +48,13 @@ if [ -z "$final_path" ]; then ynh_app_setting_set --app=$app --key=final_path --value=$final_path 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 #================================================= @@ -62,7 +69,6 @@ ynh_clean_setup () { # Exit if an error occurs during the execution of the script ynh_abort_if_errors - #================================================= # CLOSING PORT #=================================================