尝试性加入主目录沙箱--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