Skip to content

Commit

Permalink
Update installer.sh (#144)
Browse files Browse the repository at this point in the history
* Update installer.sh

fix #143 with http and https-port check.

* port check issue #143

maybe a fix for the port check issue #143
  • Loading branch information
ingof authored and cniweb committed Jan 11, 2019
1 parent e5702f4 commit bc50f3b
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 @@ -49,7 +49,7 @@ fi

if [ ! -z "${pkgwizard_txt_port}" ]; then
echo " port: ${pkgwizard_txt_port}" >>$LOG
if netstat -tlpn | grep ${pkgwizard_txt_port}; then
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
echo " Port ${pkgwizard_txt_port} already in use. Please try again." >> $SYNOPKG_TEMP_LOGFILE
Expand All @@ -59,7 +59,7 @@ fi

if [ ! -z "${pkgwizard_txt_ports}" ]; then
echo " port: ${pkgwizard_txt_ports}" >>$LOG
if netstat -tlpn | grep ${pkgwizard_txt_ports}; then
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
echo " Port ${pkgwizard_txt_ports} already in use. Please try again." >> $SYNOPKG_TEMP_LOGFILE
Expand Down

0 comments on commit bc50f3b

Please sign in to comment.