From 5eeab06729b1a57034b773deeb065cb1ffa57a78 Mon Sep 17 00:00:00 2001 From: Krakinou Date: Mon, 25 May 2020 20:42:31 +0200 Subject: [PATCH] Remove $port from service check --- scripts/install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/install b/scripts/install index 32ff154..a60559b 100755 --- a/scripts/install +++ b/scripts/install @@ -177,7 +177,9 @@ chown -R $app:$app /var/log/$app #================================================= ynh_script_progression --message="Setting up database and settings..." --weight=5 #we need to start and stop the service so that initial app.db file is created and that we can set default data -ynh_systemd_action --service_name=$app --action="start" --line_match="server on :$port" --log_path="$final_path/calibre-web.log" -t 30 +#If port 8083 is already in use (ex for second instance), then service start will fail, which is expected : so we do not want +#to set $port on the line match. "server on" will be displayed in case the port is already in use and should be ok to spot the fact that the database is initialized. +ynh_systemd_action --service_name=$app --action="start" --line_match="server on " --log_path="$final_path/calibre-web.log" -t 30 #sleep required on low spec like raspberryPi sleep 2s #remove unwanted calibre-web.log