From 024b3311e077bc7521934047d7bf1d9565075fa8 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 31 Jul 2024 23:40:43 +0800 Subject: [PATCH] uninstall scripts --- uninstall/apache2 | 13 +++++++++++++ uninstall/grub-customizer | 19 +++++++++++++++++++ uninstall/lite-xl | 8 ++++---- 3 files changed, 36 insertions(+), 4 deletions(-) create mode 100755 uninstall/apache2 create mode 100755 uninstall/grub-customizer diff --git a/uninstall/apache2 b/uninstall/apache2 new file mode 100755 index 0000000..b6e725e --- /dev/null +++ b/uninstall/apache2 @@ -0,0 +1,13 @@ +#!/bin/bash +##makedesc: Uninstall apache2 +source `dirname $0`/../helpers || exit 255 + +title + +sudo apt remove -y --autoremove apache2 + +[ $? = 0 ] && { + echo + success "apache2 uninstalled!" + echo +} diff --git a/uninstall/grub-customizer b/uninstall/grub-customizer new file mode 100755 index 0000000..f6b0b71 --- /dev/null +++ b/uninstall/grub-customizer @@ -0,0 +1,19 @@ +#!/bin/bash +##makedesc: Uninstall grub-customizer with ppa +source `dirname $0`/../helpers || exit 255 + +title + +source_file="/etc/apt/sources.list.d/$(ls -1 /etc/apt/sources.list.d/ | grep danielrichter2007)" + +sudo apt remove -y --autoremove grub-customizer && \ + [ -f "$source_file" ] && { + sudo rm "$source_file" && \ + sudo apt update + } + +[ $? = 0 ] && { + echo + success "grub-customizer uninstalled!" + echo +} diff --git a/uninstall/lite-xl b/uninstall/lite-xl index 4e580e2..10cf21f 100755 --- a/uninstall/lite-xl +++ b/uninstall/lite-xl @@ -9,10 +9,10 @@ echo set -x rm -rf \ - "${HOME}/.local/bin/lite-xl" \ - "${HOME}/.local/share/applications/org.lite_xl.lite_xl.desktop" \ - "${HOME}/.local/share/lite-xl" \ - "${HOME}/.config/lite-xl" + "$HOME/.local/bin/lite-xl" \ + "$HOME/.local/share/applications/org.lite_xl.lite_xl.desktop" \ + "$HOME/.local/share/lite-xl" \ + "$HOME/.config/lite-xl" sudo update-desktop-database && \ xdg-desktop-menu forceupdate