From 502cb985d0bc8f79dbe98a3a992dd96a579a5e96 Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Mon, 31 Jul 2017 15:09:29 +0200 Subject: [PATCH] add fix --- Makefile | 4 ++-- install.sh | 8 +++++--- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 7d83f85..56796c4 100755 --- a/Makefile +++ b/Makefile @@ -17,12 +17,12 @@ install: install -m 0755 bin/$$prog /usr/bin; \ done - if test ! -d /etc/motds32; then mkdir -p /etc/motds32; touch /etc/motds32/Stats32.txt; chmod 777 /etc/motds32/Stats32.txt; fi + if test ! -d /etc/motds32; then mkdir -p /etc/motds32; touch /etc/motds32/Stats32.txt; chmod 777 /etc/motds32/Stats32.txt; fi for config in $(CONFIGS); do \ if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \ done - /usr/bin/motds32 -g + uninstall: for prog in $(PROGRAMS); do \ rm -f /usr/bin/$$prog; \ diff --git a/install.sh b/install.sh index e54d0ed..44be10c 100755 --- a/install.sh +++ b/install.sh @@ -106,8 +106,10 @@ tput cup 11 0 echo -e "\n\e[34m - apt-get installation build-essential ntp figlet \e[0m>> Succesfull" if [ -f "/usr/bin/motds32" ] then - echo -e "\n\e[34m - Make file \e[0m>> already done.\e[0m\n" - else + echo -e "\n\e[34m - Make file \e[0m>> founded.\e[0m\n" + make install + echo -e "\n\e[34m - REMake file done.\e[0m\n" + else echo -e "\n\e[92m -Building binary \e[0m\n" make install echo -e "\n\e[34m - Make file done.\e[0m\n" @@ -275,4 +277,4 @@ done # Restore screen tput rmcup -echo "Installation MOTDs32 terminated." +echo -e "\nInstallation MOTDs32 terminated."