[ypserv] comment added to to rpc.yppasswdd.env script
Jan Horak
hhorak at fedoraproject.org
Fri Nov 25 14:37:12 UTC 2011
commit ed9b52c8692fe15fa6aaca402d7dce4557dce0b2
Author: Honza HorĂ¡k <hhorak at redhat.com>
Date: Fri Nov 25 15:36:45 2011 +0100
comment added to to rpc.yppasswdd.env script
rpc.yppasswdd.env | 14 ++++++++++++++
ypserv.spec | 2 +-
2 files changed, 15 insertions(+), 1 deletions(-)
---
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 <hhorak at redhat.com>
+# 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 <hhorak at redhat.com> - 2.26-7
+* Fri Nov 25 2011 Honza Horak <hhorak at redhat.com> - 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
More information about the scm-commits
mailing list