mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-09 19:29:00 +01:00

Use debconf to ask questions. This allow us to: - install deb packages using apt frontends (noninteractive, readline, etc). - display the questions on graphical installers like Gdebi. closes #75
34 lines
644 B
Bash
Executable file
34 lines
644 B
Bash
Executable file
#!/bin/sh
|
|
set -e
|
|
|
|
. /usr/share/debconf/confmodule
|
|
|
|
purge_files()
|
|
{
|
|
if [ -e /usr/share/debconf/confmodule ]; then
|
|
. /usr/share/debconf/confmodule
|
|
fi
|
|
|
|
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
|
|
}
|
|
|
|
pkill -15 opensnitch-ui || true
|
|
db_purge
|
|
|
|
case "$1" in
|
|
purge)
|
|
purge_files
|
|
;;
|
|
remove)
|
|
db_purge
|
|
;;
|
|
esac
|