fenrir/uninstall.sh

24 lines
552 B
Bash
Raw Normal View History

2017-02-02 04:10:27 -05:00
#!/bin/bash
#Basic uninstall script for Fenrir.
2017-02-02 04:10:27 -05:00
cat << EOF
2017-03-18 06:02:56 -04:00
Fenrir is going to remove.
All scripts and settings will be lost.
2017-02-02 04:10:27 -05:00
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
2017-02-02 04:14:06 -05:00
unlink /usr/bin/fenrir
2017-03-16 18:53:16 -04:00
unlink /usr/bin/fenrir-daemon
rm -rf /opt/fenrir
rm -rf /usr/share/fenrir
rm -rf /etc/fenrir
rm -rf /usr/share/sounds/fenrir
rm -f /usr/lib/systemd/system/fenrir.service
2017-02-02 04:10:27 -05:00
# success message
2017-02-02 04:10:27 -05:00
cat << EOF
2017-03-18 06:02:56 -04:00
Fenrir has been successfully removed from your system.
2017-02-02 04:10:27 -05:00
EOF