Commit 0f241a41 authored by Boxiang Sun's avatar Boxiang Sun

peertube: backup fixup

parent 7e8428fc
...@@ -54,4 +54,4 @@ md5sum = 58d1a4fe246169dea94d7d243b4bac9e ...@@ -54,4 +54,4 @@ md5sum = 58d1a4fe246169dea94d7d243b4bac9e
[template-peertube-restore-script] [template-peertube-restore-script]
filename = template-peertube-restore.sh.in filename = template-peertube-restore.sh.in
md5sum = ad91e27d140d96277144e5ba83b553df md5sum = da2564f97a74674e700880c005106720
...@@ -77,4 +77,9 @@ wait $PID ...@@ -77,4 +77,9 @@ wait $PID
echo 'Backup restoration successfully completed.' echo 'Backup restoration successfully completed.'
# Allow slapos node instance to start the postgresql service # Allow slapos node instance to start the postgresql service
kill $postgres_pid kill $postgres_pid
\ No newline at end of file
if [ -e "$pid_file" ]; then
echo "postgresql exited, aborting."
rm $pid_file
fi
\ No newline at end of file
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