Update unisntall.sh
This commit is contained in:
parent
5eadb0e038
commit
629161b683
1 changed files with 14 additions and 0 deletions
14
unisntall.sh
14
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"
|
||||
|
|
Loading…
Reference in a new issue