From ed9b52c8692fe15fa6aaca402d7dce4557dce0b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Hor=C3=A1k?= Date: Fri, 25 Nov 2011 15:36:45 +0100 Subject: [PATCH] comment added to to rpc.yppasswdd.env script --- rpc.yppasswdd.env | 14 ++++++++++++++ ypserv.spec | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/rpc.yppasswdd.env b/rpc.yppasswdd.env index 364e09e..0dabb6c 100644 --- a/rpc.yppasswdd.env +++ b/rpc.yppasswdd.env @@ -1,4 +1,18 @@ #!/bin/bash +# +# Author: Honza Horak +# Date: 2011/11/25 +# Package: ypserv +# +# This script is part of ypserv package. +# We need to pass all environment variables set in /etc/sysconfig/yppasswdd +# to rpc.yppasswdd daemon, but only if they are not empty. However, this +# simple logic is not supported by systemd. +# This script wraps the main binary, prepares YPPASSWDD_ARGS variable +# to include all necessary variables (ETCDIR, PASSWDFILE and SHADOWFILE) +# and passes this variable to daemon. +# The script ensures, that the rpc.yppasswdd arguments are not used in case +# the appropriate environment variables are empty. if [ "$ETCDIR" ]; then YPPASSWDD_ARGS="$YPPASSWDD_ARGS -D $ETCDIR" diff --git a/ypserv.spec b/ypserv.spec index ff3401d..0fdc901 100644 --- a/ypserv.spec +++ b/ypserv.spec @@ -168,7 +168,7 @@ exit 0 %{_includedir}/*/* %changelog -* Thu Nov 24 2011 Honza Horak - 2.26-7 +* Fri Nov 25 2011 Honza Horak - 2.26-7 - Fixed empty domain handling in ypinit script Resolves: #751427 - Added a wrapper script to use all variables correctly in the unit file