From c0581306011a8578e3405a463aa56fa9a42e9a15 Mon Sep 17 00:00:00 2001 From: admin Date: Wed, 2 Sep 2026 02:12:52 +0000 Subject: [PATCH] release: sync public installer asset install.sh --- install.sh | 6 ------ 1 file changed, 6 deletions(-) diff --git a/install.sh b/install.sh index e29496e..79461f8 100644 --- a/install.sh +++ b/install.sh @@ -132,12 +132,6 @@ PY [[ $INSTALL_DIR != / ]] || die '安装目录不能是根目录' if [[ -e $INSTALL_DIR ]]; then [[ -d $INSTALL_DIR && ! -L $INSTALL_DIR ]] || die '安装目录必须是普通目录' - INSTALL_PATH="$INSTALL_DIR" python3 - <<'PY' || die '安装目录权限不安全' -import os, pathlib -p = pathlib.Path(os.environ['INSTALL_PATH']) -s = p.stat() -if os.geteuid() == 0 and (s.st_uid != 0 or s.st_mode & 0o022): raise SystemExit(1) -PY fi [[ ! -e "$INSTALL_DIR/.env" || ! -L "$INSTALL_DIR/.env" ]] || die '.env must not be a symlink' }