add fix
This commit is contained in:
parent
6dc40bdb5e
commit
502cb985d0
4
Makefile
4
Makefile
|
@ -17,12 +17,12 @@ install:
|
||||||
install -m 0755 bin/$$prog /usr/bin; \
|
install -m 0755 bin/$$prog /usr/bin; \
|
||||||
done
|
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 \
|
for config in $(CONFIGS); do \
|
||||||
if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \
|
if test ! -e /etc/motds32/$$config; then install -m 644 ./etc/motds32/$$config /etc/motds32; fi \
|
||||||
done
|
done
|
||||||
|
|
||||||
/usr/bin/motds32 -g
|
|
||||||
uninstall:
|
uninstall:
|
||||||
for prog in $(PROGRAMS); do \
|
for prog in $(PROGRAMS); do \
|
||||||
rm -f /usr/bin/$$prog; \
|
rm -f /usr/bin/$$prog; \
|
||||||
|
|
|
@ -106,8 +106,10 @@ tput cup 11 0
|
||||||
echo -e "\n\e[34m - apt-get installation build-essential ntp figlet \e[0m>> Succesfull"
|
echo -e "\n\e[34m - apt-get installation build-essential ntp figlet \e[0m>> Succesfull"
|
||||||
if [ -f "/usr/bin/motds32" ]
|
if [ -f "/usr/bin/motds32" ]
|
||||||
then
|
then
|
||||||
echo -e "\n\e[34m - Make file \e[0m>> already done.\e[0m\n"
|
echo -e "\n\e[34m - Make file \e[0m>> founded.\e[0m\n"
|
||||||
else
|
make install
|
||||||
|
echo -e "\n\e[34m - REMake file done.\e[0m\n"
|
||||||
|
else
|
||||||
echo -e "\n\e[92m -Building binary \e[0m\n"
|
echo -e "\n\e[92m -Building binary \e[0m\n"
|
||||||
make install
|
make install
|
||||||
echo -e "\n\e[34m - Make file done.\e[0m\n"
|
echo -e "\n\e[34m - Make file done.\e[0m\n"
|
||||||
|
@ -275,4 +277,4 @@ done
|
||||||
|
|
||||||
# Restore screen
|
# Restore screen
|
||||||
tput rmcup
|
tput rmcup
|
||||||
echo "Installation MOTDs32 terminated."
|
echo -e "\nInstallation MOTDs32 terminated."
|
||||||
|
|
Loading…
Reference in New Issue