[remaster/mcs] some more tweaks to setup scripts

This commit is contained in:
Fabio Erculiani 2010-10-18 19:01:49 +02:00
parent 1595ba73fc
commit 8242e589e5
2 changed files with 10 additions and 2 deletions

View File

@ -13,11 +13,10 @@ _setup_fds_live() {
# setup 389-ds # setup 389-ds
tmp_config_file="$(mktemp)" tmp_config_file="$(mktemp)"
echo "[General] echo "[General]
FullMachineName=sabayon FullMachineName=localhost.localdomain
SuiteSpotUserID=dirsrv SuiteSpotUserID=dirsrv
SuiteSpotGroup=dirsrv SuiteSpotGroup=dirsrv
ConfigDirectoryAdminPwd=mcsmanager ConfigDirectoryAdminPwd=mcsmanager
AdminDomain=sabayon
[slapd] [slapd]
ServerPort=389 ServerPort=389

View File

@ -1,8 +1,14 @@
#!/bin/sh #!/bin/sh
env-update
source /etc/profile
# merge config updates first # merge config updates first
echo -5 | equo conf update echo -5 | equo conf update
# make sure that sun-jdk is in use
java-config -S sun-jdk || exit 1
# setup Desktop icons # setup Desktop icons
rm /etc/skel/Desktop/*.desktop rm /etc/skel/Desktop/*.desktop
cp /usr/share/applications/keyboard.desktop /etc/skel/Desktop/ -p cp /usr/share/applications/keyboard.desktop /etc/skel/Desktop/ -p
@ -20,6 +26,9 @@ rc-update add oemsystem-default default
# setup fqdn # setup fqdn
sed -i 's/sabayon/localhost.localdomain sabayon/g' /etc/hosts sed -i 's/sabayon/localhost.localdomain sabayon/g' /etc/hosts
sed -i 's/sabayon/localhost.localdomain/g' /etc/conf.d/hostname
# setup fqdn in 389-admin, stop annoying apache crap
sed -i '/^#ServerName/ s/.*/ServerName localhost.localdomain/g' /etc/dirsrv/admin-serv/httpd.conf || exit 1
# setup MySQL # setup MySQL
# Fixup mysqld permissions, ebuild bug? # Fixup mysqld permissions, ebuild bug?