From a9cdccbffffdd2e58b5cc69683682517e892ea40 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:18:57 +0200 Subject: Adding debian version 3.7.10-0+deb12u1. Signed-off-by: Daniel Baumann --- debian/postfix-instance-generator | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 debian/postfix-instance-generator (limited to 'debian/postfix-instance-generator') diff --git a/debian/postfix-instance-generator b/debian/postfix-instance-generator new file mode 100644 index 0000000..d9242aa --- /dev/null +++ b/debian/postfix-instance-generator @@ -0,0 +1,15 @@ +#!/bin/sh + +set -e + +WANTDIR="$1/postfix.service.wants" +SERVICEFILE="/lib/systemd/system/postfix@.service" + +mkdir -p "$WANTDIR" + +ln -s "$SERVICEFILE" "$WANTDIR/postfix@-.service" +for DIR in $(postconf -h multi_instance_directories); do + ln -s "$SERVICEFILE" "$WANTDIR/postfix@$(postconf -o inet_interfaces= -hc "$DIR" multi_instance_name).service" +done + +exit 0 -- cgit v1.2.3