Update install.sh
This commit is contained in:
parent
28ebd62e65
commit
f2852f85be
1 changed files with 8 additions and 8 deletions
16
install.sh
16
install.sh
|
@ -119,15 +119,15 @@ 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[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[34m - apt-get install >\e[0m ntp figlet build-essential \e[0m>>\e[92m starting\e[0m\n" ; apt-get install -y build-essential ntp figlet;
|
||||||
echo -e "\n\e[34m - 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[34m - Make file already\e[92m done.\e[0m\n"
|
echo -e "\n\e[34m - Make file already done.\e[0m\n"
|
||||||
else
|
else
|
||||||
echo -e "\n\e[92m -Building binary \e[0m\n"
|
echo -e "\n\e[92m -Building binary \e[0m\n"
|
||||||
make install
|
make install
|
||||||
echo -e "\n\e[34m - Make file\e[92m done.\e[0m\n"
|
echo -e "\n\e[34m - Make file done.\e[0m\n"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo -e "\n\e[34mDo you want to continue this installation? (y/n)\n "
|
echo -e "\n\e[34mDo you want to continue this installation? (y/n)\n "
|
||||||
|
@ -139,11 +139,11 @@ stty $old2_stty_cfg
|
||||||
echo -e "\n\e[34m - 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[34m - Make file already\e[92m done.\e[0m\n"
|
echo -e "\n\e[34m - Make file \e[0m>> already done.\e[0m\n"
|
||||||
else
|
else
|
||||||
echo -e "\n\e[94m -Building binary \e[0m\n"
|
echo -e "\n\e[94m -Building binary \e[0m\n"
|
||||||
make install
|
make install
|
||||||
echo -e "\n\e[34m - Make file\e[92m done.\e[0m\n"
|
echo -e "\n\e[34m - Make file 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 \e[34malready added.\e[0m"
|
echo -e "\e[34m - Cron \e[0m>> already added.\e[0m"
|
||||||
else
|
else
|
||||||
echo -e "\e[34m - Cron \e[92m added.\e[0m"
|
echo -e "\e[34m - Cron 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