Update install.sh
This commit is contained in:
parent
ef88f7766c
commit
dc7a281f29
1 changed files with 8 additions and 8 deletions
16
install.sh
16
install.sh
|
@ -119,8 +119,8 @@ 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[92m - apt-get install \e[0m ntp figlet build-essential \e[94m start\e[0m\n" ; apt-get install -y build-essential ntp figlet;
|
echo -e "\n\e[34m - apt-get install \e[0m ntp figlet build-essential \e[92m start\e[0m\n" ; apt-get install -y build-essential ntp figlet;
|
||||||
echo -e "\n\e[92m - apt-get installation\e[0m Succesfull\n"
|
echo -e "\n\e[34m - apt-get installation\e[0m Succesfull\n"
|
||||||
if [ -f "/usr/bin/motds32" ]
|
if [ -f "/usr/bin/motds32" ]
|
||||||
then
|
then
|
||||||
echo -e "\n\e[92m - Make file already\e[0m done.\n"
|
echo -e "\n\e[92m - Make file already\e[0m done.\n"
|
||||||
|
@ -136,14 +136,14 @@ 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 )
|
||||||
stty $old2_stty_cfg
|
stty $old2_stty_cfg
|
||||||
if echo "$answer2" | grep -iq "^y" ;then
|
if echo "$answer2" | grep -iq "^y" ;then
|
||||||
echo -e "\n\e[92m - NO apt-get required\e[0m Installation continue... \n";
|
echo -e "\n\e[34m - NO apt-get required\e[0m Installation continue... \n";
|
||||||
if [ -f "/usr/bin/motds32" ]
|
if [ -f "/usr/bin/motds32" ]
|
||||||
then
|
then
|
||||||
echo -e "\n\e[92m - Make file already\e[0m done.\n"
|
echo -e "\n\e[34m - Make file already\e[92m done.\e[0m\n"
|
||||||
else
|
else
|
||||||
echo -e "\n\e[92m -Building binary \e[0m\n"
|
echo -e "\n\e[94m -Building binary \e[0m\n"
|
||||||
make install
|
make install
|
||||||
echo -e "\n\e[92m - Make file\e[0m done.\n"
|
echo -e "\n\e[34m - Make file\e[92m done.\e[0m\n"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -156,9 +156,9 @@ fi
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
|
|
||||||
if crontab -l | grep -q '/usr/bin/motds32'; then
|
if crontab -l | grep -q '/usr/bin/motds32'; then
|
||||||
echo -e "\e[92m - Cron already \e[0madded."
|
echo -e "\e[92m - Cron already \e[92madded.\e[0m"
|
||||||
else
|
else
|
||||||
echo -e "\e[92m - Cron \e[0m added."
|
echo -e "\e[92m - Cron \e[92m added.\e[0m"
|
||||||
(crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab -
|
(crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue