From 01914a06efc25acf5d9bb74f665159efa76cd95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E6=80=8E=E4=B9=88=E5=B0=B1=E4=B8=8D=E6=98=AF?= =?UTF-8?q?=E4=B8=80=E5=8F=AA=E7=8C=AB=E5=91=A2=3F?= <26274059+dezhishen@users.noreply.github.com> Date: Fri, 22 Aug 2025 19:35:48 +0800 Subject: [PATCH] refactor(ci): add permissions check at docker's entrypoint (#1128) Co-authored-by: MadDogOwner --- entrypoint.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index a1b826f3..9e759294 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -5,9 +5,23 @@ umask ${UMASK} if [ "$1" = "version" ]; then ./openlist version else + # Check file of /opt/openlist/data permissions for current user + # 检查当前用户是否有当前目录的写和执行权限 + if [ -d ./data ]; then + if ! [ -w ./data ] || ! [ -x ./data ]; then + cat <