netstat is old, not used anymore. ss is the natural replacement. Very similar syntax
Danimo recommendation
This commit is contained in:
parent
520c76007a
commit
3e13ba7d36
@ -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
|
||||
|
@ -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
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user