diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:46:31 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-06 01:46:31 +0000 |
commit | 32afea41ba8b7328e252ae97ca32c56f98d42a90 (patch) | |
tree | 11b25ffd59d9190c8316cd48ace4e198531d0e7d /debian/postfix-instance-generator | |
parent | Adding upstream version 3.4.23. (diff) | |
download | postfix-4a9b5df85228cb8bf2e42f40a51eab367b93f833.tar.xz postfix-4a9b5df85228cb8bf2e42f40a51eab367b93f833.zip |
Adding debian version 3.4.23-0+deb10u1.debian/3.4.23-0+deb10u1
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..51ca28d --- /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 |