Update install.sh

This commit is contained in:
Erreur32 2017-07-21 01:25:35 +02:00
parent 1d18a9a018
commit e22ffac1ac

View file

@ -72,8 +72,7 @@ then
echo "cat /etc/motd" >> /root/.bashrc echo "cat /etc/motd" >> /root/.bashrc
echo -e "\e[92m Code bash added.\e[0m" echo -e "\e[92m Code bash added.\e[0m"
else else
echo "Code bash found" echo "Code bash found" ; grep '/etc/motd' /root/.bashrc
grep '/etc/motd' /root/.bashrc
#sed -i '/cat \/etc\/motd/d' /root/.bashrc #sed -i '/cat \/etc\/motd/d' /root/.bashrc
#echo -e "\e[92m Code .bashrc remove.\e[0m" #echo -e "\e[92m Code .bashrc remove.\e[0m"
fi fi
@ -110,17 +109,17 @@ stty raw -echo
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done ) answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
stty $old_stty_cfg stty $old_stty_cfg
if echo "$answer" | grep -iq "^y" ;then if echo "$answer" | grep -iq "^y" ;then
echo -e "\n\e[34m1.\e[92m apt-get install \e[0m ntp figlet \e[94m start\e[0m\n" ; apt-get install -y ntp figlet; echo -e "\n\e[92m apt-get install \e[0m ntp figlet \e[94m start\e[0m\n" ; apt-get install -y ntp figlet;
echo -e "\n\e[92mapt-get installation\e[0m Succesfull" echo -e "\n\e[92mapt-get installation\e[0m Succesfull"
if [ -f /usr/bin/motds32 ] if [ -f /usr/bin/motds32 ]
then then
echo -e "\nMake file done.\n" echo -e "\n\e[92m Make file done.\n"
else else
make install make install
echo -e "\nMake file done.\n" echo -e "\n\e[92m Make file done.\n"
fi fi
else else
echo -e "\nDo you want to continue this installation? (y/n)\n " echo -e "\n\e[34mDo you want to continue this installation? (y/n)\n "
old2_stty_cfg=$(stty -g) old2_stty_cfg=$(stty -g)
stty raw -echo stty raw -echo
answer2=$( while ! head -c 2 | grep -i '[ny]' ;do true ;done ) answer2=$( while ! head -c 2 | grep -i '[ny]' ;do true ;done )