更新ace-env中的aptss配置,去掉apm debug中检查容器的逻辑,避免ubuntu哈气

This commit is contained in:
2026-04-30 23:35:45 +08:00
parent eba44e8489
commit 736e11255e

View File

@@ -14,14 +14,14 @@ export ACE_PACKAGE_NAME=$PKGNAME
chrootEnvPath=/var/lib/apm/$PKGNAME/files/ace-env
if [ ! -e $chrootEnvPath/finish.flag ];then
if [ "$(id -u)" = "0" ]; then
`dirname $chrootEnvPath`/bin/ace-init
else
pkexec `dirname $chrootEnvPath`/bin/ace-init
fi
# if [ ! -e $chrootEnvPath/finish.flag ];then
# if [ "$(id -u)" = "0" ]; then
# `dirname $chrootEnvPath`/bin/ace-init
# else
# pkexec `dirname $chrootEnvPath`/bin/ace-init
# fi
# Ubuntu 26.04 中断了我们配置容器
fi
non_root_user=$(who | awk '{print $1}' | head -n 1)