mirror of
https://gitee.com/amber-ce/amber-pm
synced 2026-06-22 14:13:54 +08:00
尝试性加入主目录沙箱--Wine
This commit is contained in:
+13
-1
@@ -5,11 +5,23 @@ systemctl disable apm-daily-update
|
||||
|
||||
|
||||
|
||||
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
||||
if [ "$1" = "remove" ] ;then
|
||||
echo "执行卸载操作,您的容器仍然被保留在 /var/lib/apm/ 下。请执行 sudo apt purge apm 以清理"
|
||||
|
||||
elif [ "$1" = "purge" ];then
|
||||
echo "清理卸载残留"
|
||||
|
||||
rm -rf /var/lib/apm/
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
if [ -d "/home/$username/.apm/" ]
|
||||
then
|
||||
rm -fr "/home/$username/.apm/"
|
||||
fi
|
||||
done
|
||||
|
||||
|
||||
else
|
||||
echo "非卸载,跳过清理"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user