[Fedora-directory-commits] ldapserver/wrappers initscript.in, 1.1, 1.2
Richard Allen Megginson (rmeggins)
fedora-directory-commits at redhat.com
Mon Feb 12 19:39:11 UTC 2007
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/admin/src ds_newinst.pl.in, 1.3, 1.4
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/admin/src/scripts template-bak2db.in, 1.4, 1.5 template-bak2db.pl.in, 1.3, 1.4 template-cl-dump.pl.in, 1.3, 1.4 template-db2bak.in, 1.4, 1.5 template-db2bak.pl.in, 1.3, 1.4 template-db2index.in, 1.4, 1.5 template-db2index.pl.in, 1.3, 1.4 template-db2ldif.in, 1.4, 1.5 template-db2ldif.pl.in, 1.3, 1.4 template-ldif2db.in, 1.4, 1.5 template-ldif2db.pl.in, 1.3, 1.4 template-ldif2ldap.in, 1.3, 1.4 template-monitor.in, 1.3, 1.4 template-ns-accountstatus.pl.in, 1.3, 1.4 template-ns-activate.pl.in, 1.3, 1.4 template-ns-inactivate.pl.in, 1.3, 1.4 template-ns-newpwpolicy.pl.in, 1.3, 1.4 template-repl-monitor-cgi.pl.in, 1.3, 1.4 template-repl-monitor.pl.in, 1.2, 1.3 template-restoreconfig.in, 1.4, 1.5 template-saveconfig.in, 1.4, 1.5 template-start-slapd.in, 1.6, 1.7 template-stop-slapd.in, 1.6, 1.7 template-suffix2instance.in, 1.4, 1.5 template-upgradedb.in, 1.4, 1.5 template-verify-db.pl.in, 1.5, 1.6 template-vlvindex.in, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: rmeggins
Update of /cvs/dirsec/ldapserver/wrappers
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv21168/ldapserver/wrappers
Modified Files:
initscript.in
Log Message:
Resolves: bug 227771
Bug Description: FHS: use sysconfdir (/etc) as config file location - allow builders to set dynamic config directory location at configure time
Reviewed by: nhosoi, nkinder, prowley (Thanks!)
Fix Description: I've added a new configure switch: --with-instconfigdir. This switch will allow the user to specify a different location to store the dynamic instance specific config files rather than the default $sysconfdir/$package_name (e.g. /etc/fedora-ds). This is the directory which will contain the slapd-instance directories which contain the instance specific config, schema, and security files. Even though the user could override this with ds_newinst.pl ([slapd] section config_dir), we needed to be able to set the default so that the user would not have to remember to do this every time, and so that packagers could set a reasonable default value for their platform.
Platforms tested: FC6, RHEL4
Flag Day: no
Doc impact: no
Index: initscript.in
===================================================================
RCS file: /cvs/dirsec/ldapserver/wrappers/initscript.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- initscript.in 9 Feb 2007 22:33:59 -0000 1.1
+++ initscript.in 12 Feb 2007 19:39:09 -0000 1.2
@@ -30,7 +30,7 @@
# PID directory
piddir="@localstatedir@/run/@package_name@"
# Instance basedir
-instbase="@sysconfdir@/@package_name@"
+instbase="@instconfigdir@"
[ -f $exec ] || exit 0
@@ -43,8 +43,10 @@
INSTANCES=""
for FILE in `/bin/ls -d $instbase/slapd-* 2>/dev/null`; do
- INSTANCES+=$(echo "$FILE" | sed -e "s|$instbase/slapd-||")
- INSTANCES+=" "
+ if [ -d "$FILE" ] ; then
+ INSTANCES+=$(echo "$FILE" | sed -e "s|$instbase/slapd-||")
+ INSTANCES+=" "
+ fi
done
if [ -n "$2" ]; then
- Previous message (by thread): [Fedora-directory-commits] ldapserver/ldap/admin/src ds_newinst.pl.in, 1.3, 1.4
- Next message (by thread): [Fedora-directory-commits] ldapserver/ldap/admin/src/scripts template-bak2db.in, 1.4, 1.5 template-bak2db.pl.in, 1.3, 1.4 template-cl-dump.pl.in, 1.3, 1.4 template-db2bak.in, 1.4, 1.5 template-db2bak.pl.in, 1.3, 1.4 template-db2index.in, 1.4, 1.5 template-db2index.pl.in, 1.3, 1.4 template-db2ldif.in, 1.4, 1.5 template-db2ldif.pl.in, 1.3, 1.4 template-ldif2db.in, 1.4, 1.5 template-ldif2db.pl.in, 1.3, 1.4 template-ldif2ldap.in, 1.3, 1.4 template-monitor.in, 1.3, 1.4 template-ns-accountstatus.pl.in, 1.3, 1.4 template-ns-activate.pl.in, 1.3, 1.4 template-ns-inactivate.pl.in, 1.3, 1.4 template-ns-newpwpolicy.pl.in, 1.3, 1.4 template-repl-monitor-cgi.pl.in, 1.3, 1.4 template-repl-monitor.pl.in, 1.2, 1.3 template-restoreconfig.in, 1.4, 1.5 template-saveconfig.in, 1.4, 1.5 template-start-slapd.in, 1.6, 1.7 template-stop-slapd.in, 1.6, 1.7 template-suffix2instance.in, 1.4, 1.5 template-upgradedb.in, 1.4, 1.5 template-verify-db.pl.in, 1.5, 1.6 template-vlvindex.in, 1.4, 1.5
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-directory-commits
mailing list