From 27952ba4ca3550529929f1e967a4bbe3413da0fe Mon Sep 17 00:00:00 2001 From: Pavel Raiskup Date: Tue, 1 Jul 2014 14:55:46 +0200 Subject: configury: install postgresql@.service .. as a hardlink to postgresql.service. This allows us to instantiate postgresql@PATTERN units which will be easily configurable in /etc/postgresql/postgresql@PATTERN conf file. We may install separate service file with '.include' statement but that does not seem to be necessary ATM. --- Makefile.am | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit