Skip to content

Commit

Permalink
some fixes for installer
Browse files Browse the repository at this point in the history
  • Loading branch information
mosajjal committed Oct 23, 2023
1 parent 020e5ea commit 2fc051a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ systemctl restart systemd-resolved
# check if stub resolver is removed by checking netstat for port 53 udp. try both ss and netstat
# try ss first, if it's not installed, try netstat
if command -v ss &> /dev/null; then
if ss -lun | grep -q 53; then
if ss -lun '( dport = :53 )' | grep -q 53; then
echo "stub resolver is not removed"
exit 1
fi
elif command -v netstat &> /dev/null; then
if netstat -lun | grep -q 53; then
if netstat -lun '( dport = :53 )' | grep -q 53; then
echo "stub resolver is not removed. maybe sniproxy is already installed?"
exit 1
fi
Expand All @@ -66,7 +66,7 @@ configPath="/opt/sniproxy/sniproxy.yaml"
yqPath="/opt/sniproxy/yq"

# download sniproxy
wget -O $execCommand http://bin.n0p.me/sniproxy
wget -o $execCommand http://bin.n0p.me/sniproxy
# make it executable
chmod +x $execCommand

Expand Down

0 comments on commit 2fc051a

Please sign in to comment.