Update Install.sh
This commit is contained in:
parent
26da99f577
commit
7bc0dd416a
1 changed files with 4 additions and 4 deletions
|
@ -43,7 +43,7 @@ echo "cat /etc/motd" >> /root/.bashrc
|
||||||
|
|
||||||
## Insdtall modules
|
## Insdtall modules
|
||||||
|
|
||||||
if [ -e /etc/motds32/Stats32]
|
if [ -f /etc/motds32/Stats32]
|
||||||
then
|
then
|
||||||
echo -e "Stats32 already installed"
|
echo -e "Stats32 already installed"
|
||||||
else
|
else
|
||||||
|
@ -51,7 +51,7 @@ if [ -e /etc/motds32/Stats32]
|
||||||
cp Stats32 /etc/motds32/Stats32 -Rf
|
cp Stats32 /etc/motds32/Stats32 -Rf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -e /usr/bin/motd]
|
if [ -f /usr/bin/motd]
|
||||||
then
|
then
|
||||||
echo -e "motd already installed"
|
echo -e "motd already installed"
|
||||||
else
|
else
|
||||||
|
@ -59,7 +59,7 @@ if [ -e /usr/bin/motd]
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "Do you wish to install the missing package before (y/n)? \n --> apt-get install ntp figlet ?"
|
echo -e "Do you wish to install the missing package before \n --> apt-get install ntp figlet ? (y/n)? "
|
||||||
old_stty_cfg=$(stty -g)
|
old_stty_cfg=$(stty -g)
|
||||||
stty raw -echo
|
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 )
|
||||||
|
@ -72,7 +72,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
## Install Crontab
|
## Install Crontab
|
||||||
echo -e "\n \n Add ENTRY in ROOT crontab (generation each 5 minutes)"
|
echo -e "\n Add ENTRY in ROOT crontab (generation each 5 minutes)\n"
|
||||||
|
|
||||||
crontab << FIN
|
crontab << FIN
|
||||||
$(crontab -l)
|
$(crontab -l)
|
||||||
|
|
Loading…
Reference in a new issue