尝试性加入主目录沙箱--Wine

This commit is contained in:
2025-10-31 21:09:16 +08:00
parent 7b06cf293b
commit 908f3ab9de
5 changed files with 52 additions and 8 deletions

View File

@@ -327,6 +327,14 @@ PACKAGE_NAME="$DPKG_MAINTSCRIPT_PACKAGE"
if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then
echo "清理卸载残留"
rm -rf "/var/lib/apm/$PACKAGE_NAME"
for username in $(ls /home)
do
echo /home/$username
if [ -d "/home/$username/.apm/$PACKAGE_NAME" ]
then
rm -fr "/home/$username/.apm/$PACKAGE_NAME"
fi
done
else
echo "非卸载,跳过清理"
fi

View File

@@ -1,5 +1,5 @@
#!/bin/bash
VERSION=1.1.1
VERSION=1.1.2
# 获取脚本名称用于帮助信息
SCRIPT_NAME=$(basename "$0")
PATH_PREFIX=/var/lib/apm/apm/files/ace-env/
@@ -301,7 +301,7 @@ case "$1" in
fi
coredir=$pkg
export APM_PKG_NAME=$pkg
# 检测是否有额外命令参数
if [ $# -gt 0 ]; then