1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/tvheadend_ynh.git synced 2024-10-01 13:34:50 +02:00

Fix other linter warnings

This commit is contained in:
Sylvain CECCHETTO 2021-09-30 16:49:12 +02:00
parent a824d0e2ca
commit 5847ac4f53
4 changed files with 23 additions and 15 deletions

View file

@ -57,10 +57,6 @@
"en": "Set the superuser password",
"fr": "Définissez le mot de passe du superutilisateur"
},
"help": {
"en": "Use the help field to add an information for the admin about this question.",
"fr": "Utilisez le champ aide pour ajouter une information à l'intention de l'administrateur à propos de cette question."
},
"example": "Choose a password"
}
]

View file

@ -147,14 +147,14 @@ ynh_use_logrotate --logfile=/var/log/$app.log
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="TV streaming server and recorder" --log "/var/log/$app.log"
yunohost service add $app --description="TV streaming server and recorder" --log "/var/log/$app.log" --needs_exposed_ports $port $stream_port
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_script_progression --message="Configuring permissions..." --weight=1
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
ynh_permission_update --permission="main" --add="visitors"
#=================================================
# RELOAD NGINX

View file

@ -35,8 +35,6 @@ stream_port=$(ynh_app_setting_get --app=$app --key=stream_port)
#=================================================
ynh_script_progression --message="Validating restoration parameters..." --weight=16
ynh_webpath_available --domain=$domain --path_url=$path_url \
|| ynh_die --message="Path not available: ${domain}${path_url}"
test ! -d $final_path \
|| ynh_die --message="There is already a directory: $final_path "
@ -130,14 +128,14 @@ ynh_restore_file --origin_path="/var/log/$app.log"
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="TV streaming server and recorder" --log "/var/log/$app.log"
yunohost service add $app --description="TV streaming server and recorder" --log "/var/log/$app.log" --needs_exposed_ports $port $stream_port
#=================================================
# SETUP SSOWAT
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_script_progression --message="Configuring permissions..." --weight=1
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
ynh_permission_update --permission="main" --add="visitors"
#=================================================
# RELOAD NGINX

View file

@ -128,11 +128,25 @@ ynh_add_nginx_config
#=================================================
# SETUP SSOWAT
# ENSURE DOWNWARD COMPATIBILITY
#=================================================
ynh_script_progression --message="Configuring SSOwat..." --weight=1
ynh_script_progression --message="Ensuring downward compatibility..." --weight=1
if ynh_legacy_permissions_exists; then
ynh_legacy_permissions_delete_all
ynh_app_setting_set --app=$app --key=skipped_uris --value="/"
ynh_app_setting_delete --app=$app --key=is_public
fi
if ! ynh_permission_exists --permission="main"; then
# Create the required permissions
ynh_permission_create --permission="main" --allowed="visitors"
fi
#=================================================
# INTEGRATE SERVICE IN YUNOHOST
#=================================================
ynh_script_progression --message="Integrating service in YunoHost..." --weight=1
yunohost service add $app --description="TV streaming server and recorder" --log "/var/log/$app.log" --needs_exposed_ports $port $stream_port
#=================================================
# RELOAD NGINX