From 629161b6838c413e2033298f7f4d4816006788bb Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Fri, 21 Jul 2017 01:10:29 +0200 Subject: [PATCH] Update unisntall.sh --- unisntall.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/unisntall.sh b/unisntall.sh index 8bbf109..5532e1e 100755 --- a/unisntall.sh +++ b/unisntall.sh @@ -48,4 +48,18 @@ 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"