Ver Fonte

don't try to add nrpe_user if it is the same as nagios_user

John C. Frickson há 9 anos atrás
pai
commit
4bfe6f8420
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      Makefile.in

+ 3 - 1
Makefile.in

@@ -147,7 +147,9 @@ install-config:
 
 install-groups-users:
 	@build-aux/add_group_user $(DIST) $(NAGIOS_USER) $(NAGIOS_GROUP)
-	@build-aux/add_group_user $(DIST) $(NRPE_USER) $(NRPE_GROUP)
+	@if test "$(NAGIOS_USER)" != "$(NRPE_USER)" -o "$(NAGIOS_GROUP)" != "$(NRPE_GROUP)"; then\
+		build-aux/add_group_user $(DIST) $(NRPE_USER) $(NRPE_GROUP);\
+	fi
 
 solaris-package:
 	@if [ `uname -s` != "SunOS" ] ; then \