first commit
This commit is contained in:
parent
446ace548e
commit
3d78339ab5
1 changed files with 9 additions and 9 deletions
18
install.sh
18
install.sh
|
@ -130,7 +130,7 @@ tput cup 11 0
|
|||
echo -e "\n\e[34m - apt-get installation build-essential ntp figlet \e[0m>> Succesfull"
|
||||
if [ -f "/usr/bin/motds32" ]
|
||||
then
|
||||
echo -e "\n\e[34m - Make file \e[0m>> founded.\e[0m\n"
|
||||
echo -e "\n\e[34m - Make file \e[0m>> found.\e[0m\n"
|
||||
#make install
|
||||
#echo -e "\n\e[34m - REMake file done.\e[0m\n"
|
||||
else
|
||||
|
@ -211,7 +211,7 @@ if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; fi
|
|||
|
||||
if [ -f "/usr/bin/motds32" ]
|
||||
then
|
||||
echo -e "\n\e[34m - Make file \e[0m>> founded.\e[0m\n"
|
||||
echo -e "\n\e[34m - Make file \e[0m>> found.\e[0m\n"
|
||||
#make install
|
||||
#echo -e "\n\e[34m - REMake file done.\e[0m\n"
|
||||
else
|
||||
|
@ -268,19 +268,19 @@ if test -f /usr/bin/motds32; then /usr/bin/motds32 -g; fi
|
|||
rm /var/cache/motds32/ -Rf
|
||||
|
||||
## remove cron
|
||||
if crontab -l | grep -q '/usr/bin/motds32'; then
|
||||
echo -e " \e[92m Cron localized\n"
|
||||
crontab -l | grep -v '/usr/bin/motds32 -g 2>1' | crontab -u root -
|
||||
echo -e " \e[92m Cron removed\n"
|
||||
if crontab -l | grep -q '/usr/bin/motds32'; then
|
||||
echo -e " \e[92m Cron localized\n"
|
||||
crontab -l | grep -v '/usr/bin/motds32 -g 2>1' | crontab -u root -
|
||||
echo -e " \e[92m Cron removed\n"
|
||||
else
|
||||
echo -e " \e[93m Cron not find\n"
|
||||
echo -e " \e[93m Cron not find\n"
|
||||
fi
|
||||
|
||||
if [ `grep -c /etc/motd ~/.bashrc` == 0 ]
|
||||
then
|
||||
echo " Code bash not founded"
|
||||
echo " Code bash not found"
|
||||
else
|
||||
echo " code bash founded"
|
||||
echo " code bash found"
|
||||
sed -i '/cat \/etc\/motd/d' ~/.bashrc
|
||||
echo -e "\e[92m Code .bashrc remove.\e[0m"
|
||||
grep -n '/etc/motd' ~/.bashrc
|
||||
|
|
Loading…
Reference in a new issue