mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2026-05-14 02:00:18 +08:00
修复 postrm写入不正确
This commit is contained in:
@@ -37,6 +37,8 @@ Description: Spark Deepin Wine Helper
|
|||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
cp postrm pkg/DEBIAN/postrm
|
||||||
|
|
||||||
|
|
||||||
chmod +x 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