Update install.sh
This commit is contained in:
parent
aa26a92cb8
commit
da722bfba1
1 changed files with 7 additions and 4 deletions
11
install.sh
11
install.sh
|
@ -100,8 +100,8 @@ if [ -f /usr/bin/motd ]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e " -->\e[34m Copy files OK\n"
|
echo -e " -->\e[34m Copy files OK\n"
|
||||||
echo -ne '######### (50%)\r\n'
|
echo -ne '######### (50%)\r'
|
||||||
|
echo -e "\n"
|
||||||
echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) "
|
echo -e "\nDo you wish to install the required package?\n \e[0m --> apt-get install ntp figlet ? (y/n) "
|
||||||
old_stty_cfg=$(stty -g)
|
old_stty_cfg=$(stty -g)
|
||||||
stty raw -echo
|
stty raw -echo
|
||||||
|
@ -129,7 +129,9 @@ stty $old2_stty_cfg
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
echo -ne '################ (80%)\r'
|
|
||||||
|
echo -ne '##################(90%)\r'
|
||||||
|
echo -e "\n"
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
|
|
||||||
if crontab -l | grep -q '/usr/bin/motds32'; then
|
if crontab -l | grep -q '/usr/bin/motds32'; then
|
||||||
|
@ -153,7 +155,8 @@ fi
|
||||||
|
|
||||||
## Generate first stats
|
## Generate first stats
|
||||||
/usr/bin/motds32 -g
|
/usr/bin/motds32 -g
|
||||||
echo -ne '####################### (100%)\r'
|
|
||||||
|
echo -ne '####################### (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"
|
echo -e "\n\e[34m \e[92m Installation of MOTDs32 completed!\e[0m \n\nUse: /usr/bin/motds32 for help\n"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
Loading…
Reference in a new issue