File: uninstall.sh

package info (click to toggle)
fenrir 1.9.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,672 kB
  • sloc: python: 10,700; sh: 387; makefile: 12
file content (23 lines) | stat: -rwxr-xr-x 596 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#Basic uninstall script for Fenrir.
cat << EOF
Fenrir is going to remove.
All scripts and settings will be lost.
EOF

# ask
read -p "This will remove Fenrir and its settings from your system,, press ctrl+C to cancel, or enter to continue." continue

# do it
unlink /usr/bin/fenrir
unlink /usr/bin/fenrir-daemon
rm -rf /opt/fenrirscreenreader
rm -rf /usr/share/fenrirscreenreader
rm -rf /etc/fenrirscreenreader
rm -rf /usr/share/sounds/fenrirscreenreader
rm -f /etc/systemd/system/fenrir.service

# success message
cat << EOF
Fenrir has been successfully removed from your system.
EOF