Skip to content

Commit bc50f3b

Browse files
ingofcniweb
authored andcommitted
Update installer.sh (#144)
* Update installer.sh fix #143 with http and https-port check. * port check issue #143 maybe a fix for the port check issue #143
1 parent e5702f4 commit bc50f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/installer.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fi
4949

5050
if [ ! -z "${pkgwizard_txt_port}" ]; then
5151
echo " port: ${pkgwizard_txt_port}" >>$LOG
52-
if netstat -tlpn | grep ${pkgwizard_txt_port}; then
52+
if netstat -tlpn | grep :${pkgwizard_txt_port}; then
5353
echo " Your selected port ${pkgwizard_txt_port} is already in use." >>$LOG
5454
echo " Please choose another one and try again." >>$LOG
5555
echo " Port ${pkgwizard_txt_port} already in use. Please try again." >> $SYNOPKG_TEMP_LOGFILE
@@ -59,7 +59,7 @@ fi
5959

6060
if [ ! -z "${pkgwizard_txt_ports}" ]; then
6161
echo " port: ${pkgwizard_txt_ports}" >>$LOG
62-
if netstat -tlpn | grep ${pkgwizard_txt_ports}; then
62+
if netstat -tlpn | grep :${pkgwizard_txt_ports}; then
6363
echo " Your selected port ${pkgwizard_txt_ports} is already in use." >>$LOG
6464
echo " Please choose another one and try again." >>$LOG
6565
echo " Port ${pkgwizard_txt_ports} already in use. Please try again." >> $SYNOPKG_TEMP_LOGFILE

0 commit comments

Comments
 (0)