Update install.sh
This commit is contained in:
parent
82bdd17c66
commit
9b4b4eb195
1 changed files with 6 additions and 6 deletions
12
install.sh
12
install.sh
|
@ -92,7 +92,7 @@ fi
|
||||||
|
|
||||||
if [ -f "/etc/motds32/Stats32" ]
|
if [ -f "/etc/motds32/Stats32" ]
|
||||||
then
|
then
|
||||||
echo -e " -->\e[34m - Stats32 already installed\e[0m"
|
echo -e " -->\e[34m Stats32 already \e[92minstalled\e[0m"
|
||||||
else
|
else
|
||||||
mkdir /etc/motds32;
|
mkdir /etc/motds32;
|
||||||
cp Stats32 /etc/motds32/Stats32 -Rf
|
cp Stats32 /etc/motds32/Stats32 -Rf
|
||||||
|
@ -102,13 +102,13 @@ fi
|
||||||
|
|
||||||
if [ -f /usr/bin/motd ]
|
if [ -f /usr/bin/motd ]
|
||||||
then
|
then
|
||||||
echo -e " -->\e[34m motd already installed\e[0m"
|
echo -e " -->\e[34m motd already \e[92minstalled\e[0m"
|
||||||
else
|
else
|
||||||
ln -s /usr/bin/motds32 /usr/bin/motd
|
ln -s /usr/bin/motds32 /usr/bin/motd
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e " -->\e[34m Copy files OK\n"
|
echo -e " -->\e[34m Check files: \e[92mOK\n"
|
||||||
#echo -ne '\e[0m #########(50%)\r'
|
#echo -ne '\e[0m #########(50%)\r'
|
||||||
#sleep 1
|
#sleep 1
|
||||||
#echo -ne "\n"
|
#echo -ne "\n"
|
||||||
|
@ -148,9 +148,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 already \e[0madded."
|
echo -e "\e[92m - Cron already \e[0madded."
|
||||||
else
|
else
|
||||||
echo -e "\e[92m Cron \e[0m added."
|
echo -e "\e[92m - Cron \e[0m added."
|
||||||
(crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab -
|
(crontab -l ; echo "*/5 * * * * /usr/bin/motds32 -g 2>1")| crontab -
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -160,7 +160,7 @@ fi
|
||||||
/usr/bin/motds32 -g
|
/usr/bin/motds32 -g
|
||||||
|
|
||||||
#echo -ne '\n\e[0m #######################(100%)\r\n\n'
|
#echo -ne '\n\e[0m #######################(100%)\r\n\n'
|
||||||
echo -e "\n\n\e[34m \e[92m Installation of MOTDs32 completed!\e[0m \n\n\nHelp? Use: \n \033[1;30m/usr/bin/motds32\e[0m \nor \033[1;30m\n motd\e[0m\n"
|
echo -e "\n\n\e[34m \e[92m Installation of MOTDs32 completed!\e[0m \n\n\n Help? Use: \n \033[1;30m /usr/bin/motds32\e[0m \n or \033[1;30m\n motd\e[0m\n"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
#EOF
|
#EOF
|
||||||
|
|
Loading…
Reference in a new issue