diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:59:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 19:59:04 +0000 |
commit | cc0cf222a55b518d86e9179ba08c61c298144c61 (patch) | |
tree | 98ad9d9c8459e9f7347678bbbaed28fa30739f6e /debian/postfix-instance-generator | |
parent | Adding upstream version 3.8.5. (diff) | |
download | postfix-cc0cf222a55b518d86e9179ba08c61c298144c61.tar.xz postfix-cc0cf222a55b518d86e9179ba08c61c298144c61.zip |
Adding debian version 3.8.5-1.debian/3.8.5-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-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 |