Update run.sh
Browse files
run.sh
CHANGED
@@ -6,13 +6,15 @@ if [ "$(id -u)" -ne 1000 ]; then
|
|
6 |
exec gosu postgres "$0" "$@"
|
7 |
fi
|
8 |
|
|
|
|
|
9 |
# 启动 PostgreSQL 服务
|
10 |
docker-entrypoint.sh postgres &
|
11 |
|
12 |
# 检查 PostgreSQL 服务是否已启动
|
13 |
echo "等待 PostgreSQL 服务启动..."
|
14 |
until pg_isready -h localhost; do
|
15 |
-
sleep
|
16 |
done
|
17 |
echo "PostgreSQL 服务已启动!"
|
18 |
|
|
|
6 |
exec gosu postgres "$0" "$@"
|
7 |
fi
|
8 |
|
9 |
+
chown -R postgres:postgres /app && chmod -R 775 /app
|
10 |
+
|
11 |
# 启动 PostgreSQL 服务
|
12 |
docker-entrypoint.sh postgres &
|
13 |
|
14 |
# 检查 PostgreSQL 服务是否已启动
|
15 |
echo "等待 PostgreSQL 服务启动..."
|
16 |
until pg_isready -h localhost; do
|
17 |
+
sleep 3
|
18 |
done
|
19 |
echo "PostgreSQL 服务已启动!"
|
20 |
|