mirror of
https://gitee.com/spark-store-project/spark-wine
synced 2026-05-14 02:00:18 +08:00
修改: spark-dwine-helper/postrm
新文件: spark-dwine-launch/postrm_template
This commit is contained in:
@@ -1,3 +1,4 @@
|
|||||||
|
#!/bin/bash
|
||||||
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
||||||
|
|
||||||
echo "清理卸载残留"
|
echo "清理卸载残留"
|
||||||
|
|||||||
25
spark-dwine-launch/postrm_template
Normal file
25
spark-dwine-launch/postrm_template
Normal file
@@ -0,0 +1,25 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
if [ "$1" = "remove" ] || [ "$1" = "purge" ];then
|
||||||
|
|
||||||
|
echo "清理卸载残留"
|
||||||
|
CONTAINER_NAME=""
|
||||||
|
|
||||||
|
if [ -z $CONTAINER_NAME ];then
|
||||||
|
echo "W: 没有指定容器,跳过清理容器。请手动前往 ~/.deepinwine/ 下删除"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
|
||||||
|
/opt/deepinwine/tools/kill.sh $CONTAINER_NAME
|
||||||
|
###这里注意,如果没写CONTAINER_NAME,会把QQ杀了
|
||||||
|
|
||||||
|
for username in $(ls /home)
|
||||||
|
do
|
||||||
|
echo /home/$username
|
||||||
|
if [ -d /home/$username/.deepinwine/$CONTAINER_NAME ]
|
||||||
|
then
|
||||||
|
rm -rf /home/$username/.deepinwine/$CONTAINER_NAME
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
else
|
||||||
|
echo "非卸载,跳过清理"
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user