mirror of
https://gitee.com/amber-ce/amber-pm
synced 2026-03-26 07:29:52 +08:00
尝试性加入主目录沙箱--Wine
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Package: apm
|
||||
Source: amber-ce
|
||||
Version: 1.1.1
|
||||
Version: 1.1.2
|
||||
Architecture: amd64
|
||||
Maintainer: shenmo <shenmo@spark-app.store>
|
||||
Installed-Size: 48724
|
||||
|
||||
@@ -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