[remaster/mcs] some more tweaks

This commit is contained in:
Fabio Erculiani 2010-10-20 19:49:10 +02:00
parent 6f64f7a358
commit 895c1bebad
2 changed files with 11 additions and 10 deletions

View File

@ -50,10 +50,7 @@ packages_to_add:
net-mail/cyrus-imapd,
www-servers/apache[threads],
www-servers/jboss-bin:4.2,
net-mail/gnarwl,
rpm2targz,
nmap,
tcpdump
net-mail/gnarwl
# Custom shell call to packages add (default is: equo install)
custom_packages_add_cmd: equo install --relaxed

View File

@ -36,11 +36,11 @@ ServerAdminPwd=mcsmanager
su - -c "/usr/sbin/setup-ds-admin.pl -f ${tmp_config_file} --silent" || return 1
# init MCS ldap data
( /usr/sbin/mcs-ldapinit.pl -d localhost.localdomain -b "dc=babel,dc=it" \
-s sa -p mcsmanager -a node1 -B "db1,db2" > /tmp/base.ldif ) || return 1
/usr/bin/ldapmodify -a -D "cn=directory manager" -w mcsmanager \
-f /tmp/base.ldif || return 1
rm -f /tmp/base.ldif &> /dev/null
# TODO
#( /usr/sbin/mcs-ldapinit.pl -d localhost.localdomain -b "dc=babel,dc=it" \
# -s sa -p mcsmanager -a node1 -B "db1,db2" -f /tmp/base.ldif ) || return 1
#/usr/bin/ldapmodify -a -D "cn=directory manager" -h localhost -w mcsmanager \
# -f /tmp/base.ldif || return 1
echo "389 Directory Server configured."
return 0
@ -64,5 +64,9 @@ _setup_fds_installed() {
setup_fds() {
# setup 389
( _is_live && _setup_fds_live ) || _setup_fds_installed
if _is_live; then
_setup_fds_live
else
_setup_fds_installed
fi
}