BastionGuard/thirdparty/bastionguard-secure-connection/utils/packaging/ui/deb/debian/postrm
specialworld83 f0f913a209 Release 2.0
2026-07-15 10:52:22 +02:00

32 lines
639 B
Bash

#!/bin/sh
set -e
purge_files()
{
for i in $(ls /home)
do
path=/home/$i/.config/
if [ -h $path/autostart/opensnitch_ui.desktop -o -f $path/autostart/opensnitch_ui.desktop ];then
rm -f $path/autostart/opensnitch_ui.desktop
fi
if [ -d $path/opensnitch/ ]; then
rm -rf $path/opensnitch/
fi
done
deskfile=/etc/xdg/autostart/opensnitch_ui.desktop
if [ -h $deskfile -o -f $deskfile ]; then
rm -f $deskfile
fi
}
pkill -15 opensnitch-ui || true
case "$1" in
purge)
purge_files
;;
remove)
purge_files
;;
esac