生态活动脚本更换helper和添加postrm

This commit is contained in:
2022-09-11 20:44:16 +08:00
parent d489f6f00d
commit c638648252
4 changed files with 22 additions and 4 deletions

16
package-script/debian/postrm Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
echo "清理卸载残留"
for username in `ls /home`
do
echo /home/$username
if [ -d "/home/$username/.deepinwine/@deb_package_name@" ]
then
rm -rf "/home/$username/.deepinwine/@deb_package_name@"
fi
done
else
echo "非卸载,跳过清理"
fi