From c87ba59552225fb10f577f75409aac2edf422fb0 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Mon, 18 Aug 2025 22:42:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20entrypoint.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index d8159625..99c0d91a 100644 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -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子目录作为数据目录