chusiang / mysql-master-master

Automatically exported from code.google.com/p/mysql-master-master
GNU General Public License v2.0
1 stars 1 forks source link

install script is broken when copying init scripts #45

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make install
2.
3.

What is the expected output? What do you see instead?

When I launch the make install script I got the error (see bleow for fix)

# make install
mkdir -p  /usr/lib/perl5/vendor_perl/5.8.8/MMM/ /usr/bin/mysql-mmm/ 
/usr/sbin/ /var/log/mysql-mmm/ /etc /etc/mysql-mmm
cp -r lib/* /usr/lib/perl5/vendor_perl/5.8.8/MMM/
cp -r bin/agent /usr/bin/mysql-mmm/
cp -r bin/monitor /usr/bin/mysql-mmm/
cp -r bin/tools /usr/bin/mysql-mmm/
cp -r etc/init.d /etc
cp: cannot overwrite non-directory `/etc/init.d' with directory 
`etc/init.d'
make: *** [install] Error 1

What version of the product are you using? On what operating system?

2.0.3 but the bug was already spotted on 2.0.0

Please provide any additional information below.

First edit the Makefile to:
add the line:
INITDIR = $(DESTDIR)/etc/init.d/
add to the mkdir line : $(INITDIR) 

replace the line:
cp -r etc/init.d $(ETCDIR)
by the line:
cp -r etc/init.d/* $(INITDIR)

Original issue reported on code.google.com by jfdu...@gmail.com on 28 May 2009 at 2:57

GoogleCodeExporter commented 9 years ago
Please see Issue 44.

Original comment by m...@pascalhofmann.de on 28 May 2009 at 3:06

GoogleCodeExporter commented 9 years ago
Sorry I did a refresh before starting writing the issue then got distracted for 
2 hours 
before commiting it. 
thanks for the great product anyway.

Original comment by jfdu...@gmail.com on 28 May 2009 at 3:10

GoogleCodeExporter commented 9 years ago

Original comment by m...@pascalhofmann.de on 28 May 2009 at 3:15