mirror of https://github.com/interlegis/sapl.git
4 changed files with 7 additions and 9 deletions
@ -1,12 +1,10 @@ |
|||||
#!/bin/sh |
#!/bin/sh |
||||
|
|
||||
# |
|
||||
|
|
||||
while true; do |
while true; do |
||||
COUNT_PG=`netstat -an | grep "tcp.*:5532.*LISTEN"| wc -l` |
COUNT_PG=`psql --dbname=postgresql://sapl:sapl@sapldb/sapl -c '\l \q' | grep sapl | wc -l` |
||||
if ! [ "$COUNT_PG" -eq "0" ]; then |
if ! [ "$COUNT_PG" -eq "0" ]; then |
||||
break |
break |
||||
fi |
fi |
||||
echo "Esperando BD" |
echo "Esperando Database Setup" |
||||
sleep 5 |
sleep 10 |
||||
done |
done |
||||
|
|||||
Loading…
Reference in new issue