Update unisntall.sh
This commit is contained in:
parent
2b346b59f5
commit
7124c3bb22
1 changed files with 11 additions and 3 deletions
14
unisntall.sh
14
unisntall.sh
|
@ -34,10 +34,18 @@ fi
|
||||||
echo -e "\n\e[34m Dsinstallation of MOTDs32 in progress... \e[0m"
|
echo -e "\n\e[34m Dsinstallation of MOTDs32 in progress... \e[0m"
|
||||||
|
|
||||||
|
|
||||||
## remove all stuff
|
## remove file and directory
|
||||||
|
|
||||||
make uninstall
|
make uninstall
|
||||||
rm /etc/motds32/ -Rf
|
rm /etc/motds32/ -Rf
|
||||||
rm /usr/bin/motd -f
|
rm /usr/bin/motd -f
|
||||||
|
|
||||||
echo -e "\n\e[92m MOTDs32 removed \e[0m"
|
## 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
|
||||||
|
|
||||||
|
echo -e "\n\e[92m Script MOTDs32 has been removed \e[0m"
|
||||||
|
|
Loading…
Reference in a new issue