mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2025-12-18 21:11:39 +08:00
修复 postrm写入不正确
This commit is contained in:
@@ -37,6 +37,8 @@ Description: Spark Deepin Wine Helper
|
||||
|
||||
EOF
|
||||
|
||||
cp postrm pkg/DEBIAN/postrm
|
||||
|
||||
|
||||
chmod +x pkg/DEBIAN/postrm
|
||||
|
||||
|
||||
14
spark-dwine-helper/postrm
Normal file
14
spark-dwine-helper/postrm
Normal file
@@ -0,0 +1,14 @@
|
||||
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
||||
|
||||
echo "清理卸载残留"
|
||||
for username in $(ls /home)
|
||||
do
|
||||
echo /home/$username
|
||||
if [ -d /home/$username/.config/spark-wine ]
|
||||
then
|
||||
rm -rf /home/$username/.config/spark-wine
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "非卸载,跳过清理"
|
||||
fi
|
||||
Reference in New Issue
Block a user