-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
debian_uninstall.sh
executable file
·58 lines (40 loc) · 1.2 KB
/
debian_uninstall.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#! /usr/bin/env bash
echo_red_text() {
echo -e "\033[31m$1\033[0m"
}
echo_green_text() {
echo -e "\033[32m$1\033[0m"
}
error_fn() {
echo
echo -e "\033[31mSomething went wrong! The script failed.\033[0m"
echo
exit 1
}
echo_green_text "Removing mozilla.cfg"
sudo rm -f /usr/lib/firefox/mozilla.cfg || error_fn
echo
echo_green_text "Removing local-settings.js"
sudo rm -f /usr/lib/firefox/defaults/pref/local-settings.js || error_fn
echo
echo_green_text "Uninstalling phoenix-policies"
sudo apt remove phoenix-policies || error_fn
echo
read -p $'\e[32mDo you want remove Prebuilt MPR Repo? [Y/n] \e[0m' RESULT
echo
case ${RESULT} in
"y" | "yes" | "YES" | "Y")
echo_green_text "Removing Prebuilt MPR Repo"
sudo rm -v /etc/apt/sources.list.d/prebuilt-mpr.list || error_fn
echo
echo_green_text "Removing GPG keyof Prebuilt MPR Repo"
sudo rm -v /usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg || error_fn
echo
;;
"n" | "no" | "N" | "NO")
;;
esac
echo_green_text "Updating APT cache"
sudo apt update || error_fn
echo
echo_green_text "Thanks for giving Phoenix a shot. Sorry to see you go :(. Please leave feedback on how we can improve! https://phoenix.celenity.dev/issues"