summaryrefslogtreecommitdiffstats
path: root/debian/postfix-instance-generator
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:18:57 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 16:18:57 +0000
commita9cdccbffffdd2e58b5cc69683682517e892ea40 (patch)
tree5890cdcebde1069c9b7419d92476e52cc5525d6f /debian/postfix-instance-generator
parentAdding upstream version 3.7.10. (diff)
downloadpostfix-a9cdccbffffdd2e58b5cc69683682517e892ea40.tar.xz
postfix-a9cdccbffffdd2e58b5cc69683682517e892ea40.zip
Adding debian version 3.7.10-0+deb12u1.debian/3.7.10-0+deb12u1debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--debian/postfix-instance-generator15
1 files changed, 15 insertions, 0 deletions
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