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

cleaning up

This commit is contained in:
ericgaspar 2020-08-29 15:56:43 +02:00 committed by tituspijean
parent 330e4a1c33
commit ee61d04432
5 changed files with 12 additions and 12 deletions

View file

@ -43,7 +43,7 @@ Can the app be used by multiple users? **No**
#### Supported architectures
* x86-64b - [![Build Status](https://ci-apps.yunohost.org/ci/logs/nodered%20%28Apps%29.svg)](https://ci-apps.yunohost.org/ci/apps/nodered/)
* 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/)
## Links

View file

@ -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.1.3
**Version incluse :** 1.1.3
## Captures d'écran
@ -28,7 +28,7 @@ La configuration, et l'installation de plugins tels que pour [Home-Assistant](ht
## Documentation
* [Documentation officielle](https://nodered.org/docs/)
* Documentation officielle : https://nodered.org/docs/
## Caractéristiques spécifiques YunoHost

View file

@ -90,7 +90,7 @@ fi
# ALTERED NODERED SETTINGS FILE
#=================================================
ynh_replace_string "httpRoot: '$old_path'," "httpRoot: '$new_path'," "$final_path/data/settings.js"
ynh_replace_string --match_string="httpRoot: '$old_path'," --replace_string="httpRoot: '$new_path'," --target_file="$final_path/data/settings.js"
#=================================================
# GENERIC FINALISATION

View file

@ -96,7 +96,7 @@ popd
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring nginx web server..." --time --weight=30
ynh_script_progression --message="Configuring nginx web server..." --weight=30
# Create a dedicated nginx config
ynh_add_nginx_config
@ -106,8 +106,8 @@ ynh_add_nginx_config
#=================================================
mkdir -p $final_path/data
cp $final_path/settings.js $final_path/data/settings.js
ynh_replace_string "//httpRoot: '/red'," "httpRoot: '$path_url'," "$final_path/data/settings.js"
ynh_replace_string "//ui: { path: "ui" }," "ui: { path: "/ui/" }," "$final_path/data/settings.js"
ynh_replace_string --match_string="//httpRoot: '/red'," --replace_string="httpRoot: '$path_url'," --target_file="$final_path/data/settings.js"
ynh_replace_string --match_string="//ui: { path: "ui" }," --replace_string="ui: { path: "/ui/" }," --target_file="$final_path/data/settings.js"
#=================================================
# SETUP SYSTEMD
@ -115,9 +115,9 @@ ynh_replace_string "//ui: { path: "ui" }," "ui: { path: "/ui/" }," "$final_path/
ynh_script_progression --message="Configuring a systemd service..." --weight=3
# Set the systemd service settings
ynh_replace_string "__PORT__" "$port" "../conf/systemd.service"
ynh_replace_string "__NODEJS__" "$nodejs_version" "../conf/systemd.service"
ynh_replace_string "__ENV_PATH__" "$PATH" "../conf/systemd.service"
ynh_replace_string --match_string="__PORT__" --replace_string="$port" --target_file="../conf/systemd.service"
ynh_replace_string --match_string="__NODEJS__" --replace_string="$nodejs_version" --target_file="../conf/systemd.service"
ynh_replace_string --match_string="__ENV_PATH__" --replace_string="$PATH" --target_file="../conf/systemd.service"
# Create a dedicated systemd config
ynh_add_systemd_config

View file

@ -124,8 +124,8 @@ ynh_add_nginx_config
if [ ! -f $final_path/data/settings.js ]; then
cp $final_path/settings.js $final_path/data/settings.js
fi
ynh_replace_string "//httpRoot: '/red'," "httpRoot: '$path_url'," "$final_path/data/settings.js"
ynh_replace_string "//ui: { path: "ui" }," "ui: { path: "/ui/" }," "$final_path/data/settings.js"
ynh_replace_string --match_string="//httpRoot: '/red'," --replace_string="httpRoot: '$path_url'," --target_file="$final_path/data/settings.js"
ynh_replace_string --match_string="//ui: { path: "ui" }," --replace_string="ui: { path: "/ui/" }," --target_file="$final_path/data/settings.js"
#=================================================
# SETUP LOGROTATE