summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 48cf2d7..64868f7 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -66,3 +66,8 @@ CLEANFILES = $(bin_SCRIPTS) \
$(nodist_pgdoc_DATA) \
$(pkgsysconf_DATA) \
$(nodist_systemdunits_DATA)
+
+install-exec-hook:
+ rm -rf $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF)@.service
+ ln $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF).service \
+ $(DESTDIR)$(systemdunitsdir)/postgresql$(DISTSUFF)@.service