Files
dkimproxy/dkimproxy_env.sh
Peter Varkoly 0a56fd9014 Accepting request 1124303 from home:robert_munteanu:branches:server:mail
Follow-up fix for boo#1216919

Make sure dkimproxy-in works even when the dynamically-created
config file under /run does not exist.

OBS-URL: https://build.opensuse.org/request/show/1124303
OBS-URL: https://build.opensuse.org/package/show/server:mail/dkimproxy?expand=0&rev=32
2023-11-09 06:00:31 +00:00

15 lines
379 B
Bash

#!/bin/sh
# extract configuration from /etc/sysconfig/dkimproxy and write
# environment to /run/dkimproxy/sysconfig to be used by
# systemd unit files.
if [ -r /etc/sysconfig/dkimproxy ]; then
cat /etc/sysconfig/dkimproxy > /run/dkimproxy/sysconfig
fi
echo "# Fully qualified hostname" >> /run/dkimproxy/sysconfig
echo "FQHN=$( hostname -f )" >> /run/dkimproxy/sysconfig