Update install.sh
This commit is contained in:
parent
1d18a9a018
commit
e22ffac1ac
1 changed files with 8 additions and 9 deletions
11
install.sh
11
install.sh
|
@ -72,8 +72,7 @@ then
|
|||
echo "cat /etc/motd" >> /root/.bashrc
|
||||
echo -e "\e[92m Code bash added.\e[0m"
|
||||
else
|
||||
echo "Code bash found"
|
||||
grep '/etc/motd' /root/.bashrc
|
||||
echo "Code bash found" ; grep '/etc/motd' /root/.bashrc
|
||||
#sed -i '/cat \/etc\/motd/d' /root/.bashrc
|
||||
#echo -e "\e[92m Code .bashrc remove.\e[0m"
|
||||
fi
|
||||
|
@ -110,17 +109,17 @@ stty raw -echo
|
|||
answer=$( while ! head -c 1 | grep -i '[ny]' ;do true ;done )
|
||||
stty $old_stty_cfg
|
||||
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"
|
||||
if [ -f /usr/bin/motds32 ]
|
||||
then
|
||||
echo -e "\nMake file done.\n"
|
||||
echo -e "\n\e[92m Make file done.\n"
|
||||
else
|
||||
make install
|
||||
echo -e "\nMake file done.\n"
|
||||
echo -e "\n\e[92m Make file done.\n"
|
||||
fi
|
||||
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)
|
||||
stty raw -echo
|
||||
answer2=$( while ! head -c 2 | grep -i '[ny]' ;do true ;done )
|
||||
|
|
Loading…
Reference in a new issue