Skip to content

Commit

Permalink
Update installer.sh
Browse files Browse the repository at this point in the history
fix openhab#143 with http and https-port check.
  • Loading branch information
ingof authored Jan 10, 2019
1 parent e5702f4 commit fb6f3cf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ else
fi

if [ ! -z "${pkgwizard_txt_port}" ]; then
echo " port: ${pkgwizard_txt_port}" >>$LOG
echo " port: :${pkgwizard_txt_port}" >>$LOG
if netstat -tlpn | grep ${pkgwizard_txt_port}; then
echo " Your selected port ${pkgwizard_txt_port} is already in use." >>$LOG
echo " Please choose another one and try again." >>$LOG
Expand All @@ -58,7 +58,7 @@ if [ ! -z "${pkgwizard_txt_port}" ]; then
fi

if [ ! -z "${pkgwizard_txt_ports}" ]; then
echo " port: ${pkgwizard_txt_ports}" >>$LOG
echo " port: :${pkgwizard_txt_ports}" >>$LOG
if netstat -tlpn | grep ${pkgwizard_txt_ports}; then
echo " Your selected port ${pkgwizard_txt_ports} is already in use." >>$LOG
echo " Please choose another one and try again." >>$LOG
Expand Down

0 comments on commit fb6f3cf

Please sign in to comment.