Update install.sh
This commit is contained in:
parent
2472fedd82
commit
cdec362ea9
1 changed files with 8 additions and 7 deletions
13
install.sh
13
install.sh
|
@ -91,11 +91,11 @@ 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 "\n1.\e[92m installation \e[0m ntp figlet \e[92m start\e[0m" ; apt-get install -y ntp figlet;
|
echo -e "\n1.\e[92m apt-get install \e[0m ntp figlet \e[94m start\e[0m" ; 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"
|
||||||
echo -e "\n start Makefile\n"
|
echo -e "\n Installation of MOTDs32\n"
|
||||||
make install
|
make install
|
||||||
echo -e "\n Makefile \e[92m OK"
|
echo -e "\n Installation done, next.\e[92m OK"
|
||||||
else
|
else
|
||||||
echo -e "\nDo you want to continue this installation? (y/n)\n "
|
echo -e "\nDo you want to continue this installation? (y/n)\n "
|
||||||
old2_stty_cfg=$(stty -g)
|
old2_stty_cfg=$(stty -g)
|
||||||
|
@ -112,9 +112,10 @@ 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 "2.\e[92m Cron localized\n"
|
echo -e "2.\e[92m Cron already added."
|
||||||
else
|
else
|
||||||
echo "*/5 * * * * root /usr/bin/motds32 -g 2>1" | crontab -
|
echo -e "2.\e[92m Cron added."
|
||||||
|
(crontab -l ; echo "*/5 * * * * root /usr/bin/motds32 -g 2>1")| crontab -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#crontab -l | grep -q '/usr/bin/motds32' && echo 'entry exists' || echo -e "2.\e[92m Cron add ==> \e[0m */5 * * * * /usr/bin/motds32 -g 2>1 \e[92m (generate each 5 minutes)\n" && */5 * * * * root /usr/bin/motds32 -g 2>1
|
#crontab -l | grep -q '/usr/bin/motds32' && echo 'entry exists' || echo -e "2.\e[92m Cron add ==> \e[0m */5 * * * * /usr/bin/motds32 -g 2>1 \e[92m (generate each 5 minutes)\n" && */5 * * * * root /usr/bin/motds32 -g 2>1
|
||||||
|
@ -132,7 +133,7 @@ fi
|
||||||
## Generate first stats
|
## Generate first stats
|
||||||
/usr/bin/motds32 -g
|
/usr/bin/motds32 -g
|
||||||
|
|
||||||
echo -e "\n3.\e[92mMOTDs32 Installation completed!\e[0m \n Use: /usr/bin/motds32 for help\n"
|
echo -e "\n\e[0m3.\e[92mMOTDs32 Installation completed!\e[0m \n\n Use: /usr/bin/motds32 for help\n"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
#EOF
|
#EOF
|
||||||
|
|
Loading…
Reference in a new issue