~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to Makefile.am

  • Committer: Toru Maesaka
  • Date: 2008-11-12 09:11:23 UTC
  • mto: (575.4.8 devel)
  • mto: This revision was merged to the branch mainline in revision 584.
  • Revision ID: dev@torum.net-20081112091123-suplric07c6vs71u
Added tests for groupaad and useradd

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
install-data-local:
40
40
        $(mkinstalldirs) $(DESTDIR)$(localstatedir) 
41
41
        @if test `id -u` = 0 ; then \
42
 
                groupadd $(DRIZZLED_USER) ;\
43
 
                useradd -g $(DRIZZLED_USER) $(DRIZZLED_USER) ;\
44
 
                chown $(DRIZZLED_USER) $(DESTDIR)$(localstatedir) ;\
 
42
                if test -n "$(GROUPADD)" && test -n "$(USERADD)"; then \
 
43
                        $(GROUPADD) $(DRIZZLED_USER) ;\
 
44
                        $(USERADD) -g $(DRIZZLED_USER) $(DRIZZLED_USER) ;\
 
45
                        chown $(DRIZZLED_USER) $(DESTDIR)$(localstatedir) ;\
 
46
                fi \
45
47
        fi
46
48
 
47
49
distclean-local: