添加卸载删除插件和软件用户数据: 1.deb包,只有当执行dpkg --purge或者-P时,会删除当前用户默认的软件用户数据. 2.rpm包,rpm -e就会删除当前用户默认的软件用户数据.
This commit is contained in:
parent
184984c9cc
commit
3bf7cec732
|
@ -9,3 +9,10 @@ rm -f /usr/bin/@@NAME@@
|
|||
if hash update-mime-database 2>/dev/null; then
|
||||
update-mime-database /usr/share/mime
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
purge|P)
|
||||
rm -rf /home/${SUDO_USER}/.config/Code\ -\ OSS
|
||||
rm -rf /home/${SUDO_USER}/.vscode-oss
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -58,6 +58,8 @@ update-mime-database /usr/share/mime &> /dev/null || :
|
|||
%postun
|
||||
if [ $1 = 0 ]; then
|
||||
rm -f /usr/bin/@@NAME@@
|
||||
rm -rf /home/${SUDO_USER}/.config/Code\ -\ OSS
|
||||
rm -rf /home/${SUDO_USER}/.vscode-oss
|
||||
fi
|
||||
|
||||
# Update mimetype database for removed workspace mimetype
|
||||
|
|
Loading…
Reference in New Issue