Update Install.sh
This commit is contained in:
parent
1012271b3b
commit
9817265a41
1 changed files with 7 additions and 7 deletions
14
Install.sh
14
Install.sh
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
## clean terminal
|
## clean terminal
|
||||||
clear;
|
clear;
|
||||||
echo -e "\n Installation of MOTDs32 in progress... "
|
echo -e "\n \e[34m Installation of MOTDs32 in progress... \e[0m"
|
||||||
|
|
||||||
## Install command in bashrc
|
## Install command in bashrc
|
||||||
echo "cat /etc/motd" >> /root/.bashrc
|
echo "cat /etc/motd" >> /root/.bashrc
|
||||||
|
@ -45,7 +45,7 @@ echo "cat /etc/motd" >> /root/.bashrc
|
||||||
|
|
||||||
if [ -f "/etc/motds32/Stats32" ]
|
if [ -f "/etc/motds32/Stats32" ]
|
||||||
then
|
then
|
||||||
echo -e " --> Stats32 already installed"
|
echo -e " -->\e[34m Stats32 already installed\e[0m"
|
||||||
else
|
else
|
||||||
mkdir /etc/motds32;
|
mkdir /etc/motds32;
|
||||||
cp Stats32 /etc/motds32/Stats32 -Rf
|
cp Stats32 /etc/motds32/Stats32 -Rf
|
||||||
|
@ -53,7 +53,7 @@ fi
|
||||||
|
|
||||||
if [ -f /usr/bin/motd ]
|
if [ -f /usr/bin/motd ]
|
||||||
then
|
then
|
||||||
echo -e " --> motd already installed"
|
echo -e " -->\e[34m motd already installed\e[0m"
|
||||||
else
|
else
|
||||||
ln -s /usr/bin/motds32 /usr/bin/motd
|
ln -s /usr/bin/motds32 /usr/bin/motd
|
||||||
|
|
||||||
|
@ -65,14 +65,14 @@ 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 OK installation start: ntp figlet" ; apt-get install -y ntp figlet; make install
|
echo -e "/n \e[92mOK installation of\e[0m ntp figlet \e[92m start\e[0m " ; apt-get install -y ntp figlet; make install
|
||||||
else
|
else
|
||||||
echo -e "/n No continue without"; make install
|
echo -e "/n \e[91m No \e[0m continue installation"; make install
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
echo -e "\n Add ENTRY in ROOT crontab (generation each 5 minutes)\n"
|
echo -e "\n Add ENTRY in \e[92mROOT crontab\e[0m (generation each 5 minutes)\n"
|
||||||
|
|
||||||
crontab << FIN
|
crontab << FIN
|
||||||
$(crontab -l)
|
$(crontab -l)
|
||||||
|
@ -85,6 +85,6 @@ FIN
|
||||||
## Generate first stats
|
## Generate first stats
|
||||||
/usr/bin/motds32 -g
|
/usr/bin/motds32 -g
|
||||||
|
|
||||||
|
echo -e "\n \e[92mInstallation successfull !!\e[0m use /usr/bin/motds32 for help"
|
||||||
|
|
||||||
#EOF
|
#EOF
|
Loading…
Reference in a new issue