From 6678ca9a56bc88bec680420008a762a4ae5e17c9 Mon Sep 17 00:00:00 2001 From: siwinter <45730097+siwinter@users.noreply.github.com> Date: Wed, 25 Aug 2021 19:18:58 +0200 Subject: [PATCH] avoid linter warning --- scripts/install | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 9be83fd..7fd4453 100755 --- a/scripts/install +++ b/scripts/install @@ -155,7 +155,11 @@ chown -R $app:www-data "$final_path" #================================================= ynh_script_progression --message="Integrating service in YunoHost..." -yunohost service add $app --description="Mopidy music server" --log="/var/log/$app/$app.log" +if [ $mpd_port -ne 0 ]; then + yunohost service add $app --description="Mopidy music server" --log="/var/log/$app/$app.log" --needs_exposed_ports=$mpd_port +else + yunohost service add $app --description="Mopidy music server" --log="/var/log/$app/$app.log" +fi #================================================= # START SYSTEMD SERVICE