Update run.sh
Browse files
run.sh
CHANGED
@@ -1,11 +1,4 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
3 |
-
# 确保以 postgres 用户身份运行
|
4 |
-
if [ "$(id -u)" -ne 1000 ]; then
|
5 |
-
echo "切换到 UID 为 1000 的 postgres 用户运行"
|
6 |
-
exec gosu postgres "$0" "$@"
|
7 |
-
fi
|
8 |
-
|
9 |
# 启动 PostgreSQL 服务
|
10 |
docker-entrypoint.sh postgres &
|
11 |
|
|
|
1 |
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
# 启动 PostgreSQL 服务
|
3 |
docker-entrypoint.sh postgres &
|
4 |
|