Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
slapos
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
slapos
Commits
347cc538
Commit
347cc538
authored
Dec 03, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: test fixup
parent
48050349
Pipeline
#25156
passed with stage
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
software/peertube/buildout.hash.cfg
software/peertube/buildout.hash.cfg
+1
-1
software/peertube/template-peertube-restore.sh.in
software/peertube/template-peertube-restore.sh.in
+2
-1
No files found.
software/peertube/buildout.hash.cfg
View file @
347cc538
...
@@ -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
software/peertube/template-peertube-restore.sh.in
View file @
347cc538
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment