Update install.sh
This commit is contained in:
parent
1d18a9a018
commit
e22ffac1ac
1 changed files with 8 additions and 9 deletions
17
install.sh
17
install.sh
|
@ -72,12 +72,11 @@ 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
|
||||
echo -ne '\e[0m## (10%)\r'
|
||||
echo -ne '\e[0m## (10%)\r'
|
||||
sleep 1
|
||||
echo -e "\n\n"
|
||||
## Insdtall modules
|
||||
|
@ -101,7 +100,7 @@ if [ -f /usr/bin/motd ]
|
|||
fi
|
||||
|
||||
echo -e " -->\e[34m Copy files OK\n"
|
||||
echo -ne '\e[0m######### (50%)\r'
|
||||
echo -ne '\e[0m#########(50%)\r'
|
||||
sleep 1
|
||||
echo -ne "\n"
|
||||
echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) "
|
||||
|
@ -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 )
|
||||
|
@ -159,7 +158,7 @@ fi
|
|||
## Generate first stats
|
||||
/usr/bin/motds32 -g
|
||||
|
||||
echo -ne '\n\e[0m####################### (100%)\r\n\n'
|
||||
echo -ne '\n\e[0m#######################(100%)\r\n\n'
|
||||
echo -e "\n\e[34m \e[92m Installation of MOTDs32 completed!\e[0m \n\nUse: /usr/bin/motds32 for help\n"
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Reference in a new issue