From ae841e1852f0fae1510b658fa40333217c0ec1f3 Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 1 May 2024 19:13:42 -0600 Subject: [PATCH] refactor: update installation script --- public/install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/install.sh b/public/install.sh index a552f28..296f87a 100644 --- a/public/install.sh +++ b/public/install.sh @@ -19,13 +19,13 @@ if [ -f /.dockerenv ]; then fi # check if something is running on port 80 -if lsof -i :80 >/dev/null; then +if ss -tulnp | grep ':80 ' >/dev/null; then echo "Error: something is already running on port 80" >&2 exit 1 fi # check if something is running on port 443 -if lsof -i :443 >/dev/null; then +if ss -tulnp | grep ':443 ' >/dev/null; then echo "Error: something is already running on port 443" >&2 exit 1 fi