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
Romain Courteaud
slapos
Commits
58db1a98
Commit
58db1a98
authored
Nov 27, 2022
by
Boxiang Sun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
peertube: maybe we don't need to check the pg query?
parent
34b1948c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
12 deletions
+12
-12
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
+11
-11
No files found.
software/peertube/buildout.hash.cfg
View file @
58db1a98
...
...
@@ -54,4 +54,4 @@ md5sum = 58d1a4fe246169dea94d7d243b4bac9e
[template-peertube-restore-script]
filename = template-peertube-restore.sh.in
md5sum =
dd4f5a5f862473efa2109315dbef3110
md5sum =
8e6091bc739f44801f52b004fac136d9
software/peertube/template-peertube-restore.sh.in
View file @
58db1a98
...
...
@@ -63,17 +63,17 @@ echo "Ready to check postgresql is running..."
# initial db setup
# ( first quering PG several times waiting a bit till postgresql is started and ready )
tpgwait=5
while true; do
pgtables="$(psql -c '\d' 2>&1)" && break
tpgwait=$(( $tpgwait - 1 ))
test $tpgwait = 0 && die "pg query problem"
echo "I: PostgreSQL is not ready (yet ?); will retry $tpgwait times..." 1>&2
sleep 1
done
echo "I: PostgreSQL ready." 1>&2
sleep 5
#
tpgwait=5
#
while true; do
#
pgtables="$(psql -c '\d' 2>&1)" && break
#
tpgwait=$(( $tpgwait - 1 ))
#
test $tpgwait = 0 && die "pg query problem"
#
echo "I: PostgreSQL is not ready (yet ?); will retry $tpgwait times..." 1>&2
#
sleep 1
#
done
#
echo "I: PostgreSQL ready." 1>&2
#
sleep 5
# Check the postgresql is running, if postgresql has stopped, abort
pid_file=$${postgresql:pgdata-directory}/postmaster.pid
...
...
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