Skip to content

Commit

Permalink
remove is_public
Browse files Browse the repository at this point in the history
  • Loading branch information
ericgaspar authored and tituspijean committed Apr 9, 2021
1 parent caf2f4c commit f250544
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -43,8 +43,8 @@ Since Node-Red can handle sensitive automation, the app is always installed in p

#### Supported architectures

* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/nodered%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/nodered/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/nodered%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/nodered/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/nodered.svg)](https://ci-apps.yunohost.org/ci/apps/nodered/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/nodered.svg)](https://ci-apps-arm.yunohost.org/ci/apps/nodered/)

## Links

Expand Down
4 changes: 2 additions & 2 deletions README_fr.md
Expand Up @@ -43,8 +43,8 @@ Puisque les automatisations gérées par Node-Red peuvent être sensibles, l'app

#### Supported architectures

* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/nodered%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/nodered/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/nodered%20%28Apps%29.svg)](https://ci-apps-arm.yunohost.org/ci/apps/nodered/)
* x86-64 - [![Build Status](https://ci-apps.yunohost.org/ci/logs/nodered.svg)](https://ci-apps.yunohost.org/ci/apps/nodered/)
* ARMv8-A - [![Build Status](https://ci-apps-arm.yunohost.org/ci/logs/nodered.svg)](https://ci-apps-arm.yunohost.org/ci/apps/nodered/)

## Liens

Expand Down
10 changes: 1 addition & 9 deletions manifest.json
Expand Up @@ -14,7 +14,7 @@
"email": "tituspijean@outlook.com"
},
"requirements": {
"yunohost": ">= 3.8.1"
"yunohost": ">= 4.1.7"
},
"multi_instance": true,
"services": [
Expand All @@ -25,19 +25,11 @@
{
"name": "domain",
"type": "domain",
"ask": {
"en": "Choose a domain name for Node-RED",
"fr": "Choisissez un nom de domaine pour Node-RED"
},
"example": "example.com"
},
{
"name": "path",
"type": "path",
"ask": {
"en": "Choose a path for Node-RED",
"fr": "Choisissez un chemin pour Node-RED"
},
"example": "/nodered",
"default": "/nodered"
}
Expand Down
1 change: 0 additions & 1 deletion scripts/install
Expand Up @@ -43,7 +43,6 @@ ynh_script_progression --message="Storing installation settings..." --weight=1

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
Expand Down
10 changes: 0 additions & 10 deletions scripts/upgrade
Expand Up @@ -19,7 +19,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)
final_path=$(ynh_app_setting_get --app=$app --key=final_path)
is_public=$(ynh_app_setting_get --app=$app --key=is_public)
port=$(ynh_app_setting_get --app=$app --key=port)

#=================================================
Expand All @@ -33,15 +32,6 @@ upgrade_type=$(ynh_check_app_version_changed)
#=================================================
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1

# Fix is_public as a boolean value
if [ "$is_public" = "Yes" ]; then
ynh_app_setting_set --app=$app --key=is_public --value=1
is_public=1
elif [ "$is_public" = "No" ]; then
ynh_app_setting_set --app=$app --key=is_public --value=0
is_public=0
fi

# If final_path doesn't exist, create it
if [ -z "$final_path" ]; then
final_path=/var/www/$app
Expand Down

0 comments on commit f250544

Please sign in to comment.