From 81c03c3355c13346ac78664bddf93235d1733cfd Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Tue, 8 Aug 2017 23:41:03 +0200 Subject: [PATCH] Delete uninstall.sh --- uninstall.sh | 67 ---------------------------------------------------- 1 file changed, 67 deletions(-) delete mode 100755 uninstall.sh diff --git a/uninstall.sh b/uninstall.sh deleted file mode 100755 index 6e48648..0000000 --- a/uninstall.sh +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh -# -# uninstall.sh -# Removal script of MOTDs32 -# -# make sur this file is executable +x - - -## clean terminal -clear; - -cat <<"EOF" - - Desinstallation of MOTDs32 | + Stats32 | - - ,--. ,--. ,-----. ,--------.,------. ,----. ,---. - | `.' |' .-. ''--. .--'| .-. \ ,---. '.-. |'.-. \ - | |'.'| || | | | | | | | \ :( .-' .' ; .-' .' - | | | |' '-' ' | | | '--' /.-' `)/'-' |/ '-. - `--' `--' `-----' `--' `-------' `----' `----' '-----' - - By Erreur32 - -# MOTDstat is dynamicaly refreshing the /etc/motd file with current informations -# about system status and usage. - -EOF - -# Make sure only root can run our script -if [[ $EUID -ne 0 ]]; then - echo "This script must be run as root" 1>&2 - exit 1 -fi - -echo -e "\n\e[34m Dsinstallation of MOTDs32 in progress... \e[0m" - - -## remove file and directory -make uninstall -rm /etc/motds32/ -Rf -rm /usr/bin/motd -f -rm /var/cache/motds32/ -Rf - -## remove cron -if crontab -l | grep -q '/usr/bin/motds32'; then -echo -e "2.\e[92m Cron localized\n" -crontab -l | grep -v '/usr/bin/motds32 -g 2>1' | crontab -u root - -echo -e "2.\e[92m Cron removed\n" -else -echo -e "2.\e[93m Cron not find\n" -fi - - -if [ `grep -c /etc/motd /root/.bashrc` == 0 ] -then -echo "Code bash not founded" -#echo "cat /etc/motd" >> /root/.bashrc -#echo -e "\e[92m Code .bashrc added.\e[0m" -else - echo "code bash founded" -sed -i '/cat \/etc\/motd/d' /root/.bashrc -echo -e "\e[92m Code .bashrc remove.\e[0m" -grep -n '/etc/motd' /root/.bashrc -fi - - -echo -e "\n\e[92m Script MOTDs32 has been removed \e[0m"