summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Raiskup <praiskup@redhat.com>2014-07-03 16:27:40 +0200
committerPavel Raiskup <praiskup@redhat.com>2014-07-03 16:27:40 +0200
commit7a9df4d2886ef19417db9f4cf0c65b3160f877fc (patch)
treeaba6253fe48a37e16c338f654d8b5e493989b489
parentea93023d6ac249d68333844c33402ea8602d09b7 (diff)
downloadpostgresql-setup-7a9df4d2886ef19417db9f4cf0c65b3160f877fc.tar.gz
postgresql-setup-7a9df4d2886ef19417db9f4cf0c65b3160f877fc.tar.xz
postgresql-setup-7a9df4d2886ef19417db9f4cf0c65b3160f877fc.zip
postgresql@.service: install this via install-data-hook
.. instead of install-exec-hook, which caused race conditions due to parallelized run of make.
-rw-r--r--Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 8b5c52f..f932651 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -67,7 +67,7 @@ CLEANFILES = $(bin_SCRIPTS) \
$(pkgsysconf_DATA) \
$(nodist_systemdunits_DATA)
-install-exec-hook:
+install-data-hook:
rm -rf $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF)@.service
ln $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF).service \
$(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF)@.service