dashboard
repositories
filestore
activity
search
login
drone
/
drone_webodm
webodm 部署代码
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
fix: 修改配置
zhongrj
2025-11-24
577bda334a603d45796b85f0c014d95309982eb0
[drone/drone_webodm.git]
/
wait-for-postgres.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
set -e
host="$1"
shift
cmd="$@"
until psql -h "$host" -U "postgres" -c '\q'; do
>&2 echo "Postgres is unavailable - sleeping"
sleep 1
done
>&2 echo "Postgres is up - executing command"
exec $cmd