Commit 347cc538 authored by Boxiang Sun's avatar Boxiang Sun

peertube: test fixup

parent 48050349
Pipeline #25156 passed with stage
in 0 seconds
...@@ -54,4 +54,4 @@ md5sum = e50daa16a2c1866997933981bed45271 ...@@ -54,4 +54,4 @@ md5sum = e50daa16a2c1866997933981bed45271
[template-peertube-restore-script] [template-peertube-restore-script]
filename = template-peertube-restore.sh.in filename = template-peertube-restore.sh.in
md5sum = 5331fb151b8262c5afb98ffa63b16516 md5sum = 31f5d6637621ff3725a513188278d45d
...@@ -72,8 +72,9 @@ echo "Ready to check postgresql is running..." ...@@ -72,8 +72,9 @@ echo "Ready to check postgresql is running..."
# ( first quering PG several times waiting a bit till postgresql is started and ready ) # ( first quering PG several times waiting a bit till postgresql is started and ready )
tpgwait=60 tpgwait=60
while true; do while true; do
pgtables="$(psql -c '\d' 2>&1)"
echo $pgtables
pgtables="$(psql -c '\d' 2>&1)" && break pgtables="$(psql -c '\d' 2>&1)" && break
echo pgtables
tpgwait=$(( $tpgwait - 1 )) tpgwait=$(( $tpgwait - 1 ))
test $tpgwait = 0 && die "pg query problem" test $tpgwait = 0 && die "pg query problem"
echo "I: PostgreSQL is not ready (yet ?); will retry $tpgwait times..." 1>&2 echo "I: PostgreSQL is not ready (yet ?); will retry $tpgwait times..." 1>&2
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment