修复 postrm写入不正确

This commit is contained in:
2022-08-11 23:31:49 +08:00
parent dae6f3dd65
commit 788cf76655
2 changed files with 16 additions and 0 deletions

View File

@@ -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
View 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