更新 entrypoint.sh

This commit is contained in:
jxxghp
2025-08-18 22:42:55 +08:00
committed by GitHub
parent 91fd71c858
commit c87ba59552

View File

@@ -246,7 +246,7 @@ if [ "${DB_TYPE:-sqlite}" = "postgresql" ]; then
# 定义PostgreSQL命令执行函数
pg_exec() {
su moviepilot -c "cd /tmp && PATH='${POSTGRESQL_BIN_DIR}:'\"\$PATH\" $*"
su -s /bin/bash moviepilot -c "cd /tmp && PATH='${POSTGRESQL_BIN_DIR}:\$PATH' $*"
}
# 使用配置目录下的postgresql子目录作为数据目录