first commit

This commit is contained in:
Erreur32 2020-04-19 16:57:38 +02:00
parent a524dfb790
commit 082a3e0fc0
1 changed files with 17 additions and 4 deletions

View File

@ -112,8 +112,9 @@ echo -e " \e[34m- build-essential \e[1;31mSelect option 1 \e[91m Missing pa
echo -e "\n YOU CAN SKIP (auto) install if you want"
echo -e "\n\e[92m Please Select:"
echo -e " 1. \e[0m(auto) Install Missing Package\e[92m"
echo -e " 2. \e[0mInstallation/Update MOTDs32 script\e[92m"
echo -e " 3. \e[0mUninstall completly MOTDs32 script\e[92m"
echo -e " 2. \e[0mInstallation MOTDs32 script\e[92m"
echo -e " 3. \e[0mUpdate MOTDs32 script\e[92m"
echo -e " 4. \e[0mUninstall completly MOTDs32 script\e[92m"
echo -e " 0. \e[0m(Enter or any key) to Quit\n \e[0m"
read -p " Enter selection [0-3] or (Enter) to Quit > " selection
@ -264,8 +265,20 @@ tput cup 11 0
echo -e "\n\n\e[34m \e[92m 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"
printf "\n \e[1;33m (Press any key to exit.)\e[0m"
;;
3) echo -e "\n\e[34m Unistall of in progress... \e[0m"
;;
3) echo -n " Git " ; git pull ; echo -e "\n\e[92m" ;
if [ -f "/usr/bin/motds32" ]
then
echo -e "\n\e[34m - Make file \e[0m>> update.\e[0m\n"
make install > /dev/null
echo -e "\n\e[32;1m - Update binary done.\e[0m\n"
else
# echo -e "\n\e[92m -Update binary \e[0m\n"
# make install > /dev/null
echo -e "\n\e[32;4m - Make install first !\e[0m\n"
fi
;;
4) echo -e "\n\e[34m Unistall of in progress... \e[0m"
## remove file and directory
make uninstall
rm /etc/motds32/ -Rf