netstat is old, not used anymore. ss is the natural replacement. Very similar syntax

Danimo recommendation
This commit is contained in:
Gustavo Trott 2024-09-10 15:24:32 -03:00
parent 520c76007a
commit 3e13ba7d36
3 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ sudo systemctl start bbb-graphql-server
#Check if Hasura is ready before applying metadata
HASURA_PORT=8085
while ! sudo netstat -tuln | grep ":$HASURA_PORT " > /dev/null; do
while ! sudo ss -tuln | grep ":$HASURA_PORT " > /dev/null; do
echo "Waiting for Hasura's port ($HASURA_PORT) to be ready..."
sleep 1
done

View File

@ -49,7 +49,7 @@ case "$1" in
#Check if Hasura is ready before applying metadata
HASURA_PORT=8085
while ! netstat -tuln | grep ":$HASURA_PORT " > /dev/null; do
while ! ss -tuln | grep ":$HASURA_PORT " > /dev/null; do
echo "Waiting for Hasura's port ($HASURA_PORT) to be ready..."
sleep 1
done

View File

@ -1,3 +1,3 @@
. ./opts-global.sh
OPTS="$OPTS -d postgresql,postgresql-contrib,gnupg2,curl,apt-transport-https,ca-certificates,libkrb5-3,libpq5,libnuma1,unixodbc-dev,net-tools -t deb"
OPTS="$OPTS -d postgresql,postgresql-contrib,gnupg2,curl,apt-transport-https,ca-certificates,libkrb5-3,libpq5,libnuma1,unixodbc-dev -t deb"