1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/zwave-js-ui_ynh.git synced 2024-09-03 18:06:00 +02:00

bunch of cleaning

This commit is contained in:
Krakinou 2022-11-19 17:37:14 +01:00
parent ab20e9dfdf
commit 92b011b1b5
8 changed files with 29 additions and 18 deletions

View file

@ -7,16 +7,16 @@
; Checks
pkg_linter=1
setup_sub_dir=1
setup_root=0
setup_root=1
setup_nourl=0
setup_private=0
setup_public=0
upgrade=0
setup_private=1
setup_public=1
upgrade=1
upgrade=0 from_commit=CommitHash
backup_restore=0
backup_restore=1
multi_instance=0
port_already_use=0
change_url=0
port_already_use=1
change_url=1
;;; Options
Email=misterl56@hotmail.com
Notification=none

View file

@ -2,4 +2,4 @@
### Features
Aims to integrate zwave-js-ui natively in Domoticz_ynh
Integrate zwave-js-ui natively in Domoticz_ynh

View file

@ -3,4 +3,4 @@
### Fonctionnalités
Vise à intégrer zwave-js-ui dans domoticz_ynh de façon native
Intègre zwave-js-ui dans domoticz_ynh de façon native

View file

@ -42,7 +42,11 @@
{
"name": "is_public",
"type": "boolean",
"default": false
"default": false,
"help": {
"en": "If set public, anyone can access the app without login in yunohost, you activate password protected login from within the app",
"fr": "Si publique, N'importe qui peut accéder à l'application sans se connecter à yunohost, vous pouvez cependant activer une connection par mot de passe depuis l'application"
}
}
]
}

View file

@ -73,7 +73,7 @@ ynh_system_user_create --username=$app --home_dir="$final_path"
#=================================================
# DOWNLOAD, CHECK AND UNPACK SOURCE
#=================================================
ynh_script_progression --message="Setting up source files..." --weight=1
ynh_script_progression --message="Setting up source files..." --weight=15
ynh_app_setting_set --app=$app --key=final_path --value=$final_path
# Download, check integrity, uncompress and patch the source from app.src
@ -86,7 +86,7 @@ chown -R $app: "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Configuring NGINX web server..." --weight=1
ynh_script_progression --message="Configuring NGINX web server..." --weight=5
# Create a dedicated NGINX config
ynh_add_nginx_config
@ -101,7 +101,7 @@ ynh_add_nginx_config
#=================================================
# ADD A CONFIGURATION
#=================================================
ynh_script_progression --message="Adding a configuration file..." --weight=1
#ynh_script_progression --message="Adding a configuration file..." --weight=1
### You can add specific configuration files.
###
@ -133,7 +133,7 @@ ynh_script_progression --message="Adding a configuration file..." --weight=1
#=================================================
# SETUP SYSTEMD
#=================================================
ynh_script_progression --message="Configuring a systemd service..." --weight=1
ynh_script_progression --message="Configuring a systemd service..." --weight=5
# Create a dedicated systemd config
ynh_add_systemd_config
@ -195,7 +195,7 @@ ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$ap
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring permissions..." --weight=1
ynh_script_progression --message="Configuring permissions..." --weight=11
# Make app public if necessary
if [ $is_public -eq 1 ]

View file

@ -94,7 +94,7 @@ ynh_secure_remove --file="/var/log/$app"
#=================================================
# REMOVE DEDICATED USER
#=================================================
ynh_script_progression --message="Removing the dedicated system user..." --weight=1
ynh_script_progression --message="Removing the dedicated system user..." --weight=7
# Delete a system user
ynh_system_user_delete --username=$app

View file

@ -89,7 +89,7 @@ chown -R $app: "$final_path"
#=================================================
# RESTORE THE NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Restoring the NGINX web server configuration..." --time --weight=1
ynh_script_progression --message="Restoring the NGINX web server configuration..." --weight=1
ynh_restore_file --origin_path="/etc/nginx/conf.d/$domain.d/$app.conf"
@ -108,6 +108,13 @@ ynh_script_progression --message="Restoring the logrotate configuration..." --we
ynh_restore_file --origin_path="/etc/logrotate.d/$app"
#=================================================
# RESTORE THE LOG FILE DIRECTORY
#=================================================
mkdir -p /var/log/$app
chown -R $app:$app /var/log/$app
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================

View file

@ -96,7 +96,7 @@ chown -R $app: "$final_path"
#=================================================
# NGINX CONFIGURATION
#=================================================
ynh_script_progression --message="Upgrading NGINX web server configuration..." --time --weight=1
ynh_script_progression --message="Upgrading NGINX web server configuration..." --weight=1
# Create a dedicated NGINX config
ynh_add_nginx_config