diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:18:57 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 16:18:57 +0000 |
commit | a9cdccbffffdd2e58b5cc69683682517e892ea40 (patch) | |
tree | 5890cdcebde1069c9b7419d92476e52cc5525d6f /debian/postfix-instance-generator | |
parent | Adding upstream version 3.7.10. (diff) | |
download | postfix-a9cdccbffffdd2e58b5cc69683682517e892ea40.tar.xz postfix-a9cdccbffffdd2e58b5cc69683682517e892ea40.zip |
Adding debian version 3.7.10-0+deb12u1.debian/3.7.10-0+deb12u1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/postfix-instance-generator')
-rw-r--r-- | debian/postfix-instance-generator | 15 |
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 |