Ignore:
Timestamp:
12/07/08 13:51:14 (3 years ago)
Author:
tschmitt
Message:
  • linuxmuster-setup:
    • obsoletes Konfigurationstemplate für sophomorix' slapd.conf entfernt.
    • obsoletes repair-admins-Skript entfernt.
    • div. Anpassungen bzgl. Neuerstellung der ldap-DB mit sophomorix bei Erstinstallation.
  • paedml40-upgrade:
    • div. Fixes bzgl. slapd- und rembo/linbo-Konfiguration.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/linuxmuster-base/trunk/var/config-dynamic/15_ldap/prepatch

    r406 r409  
    1 # recreate pg clusters on first install 
     1# necessary to trick sophomorix 
    22if [ "$1" = "--first" ]; then 
    3     for i in 7.4 8.1; do 
    4         pg_dropcluster $i main 
    5         pg_createcluster $i main 
    6         cp -f $STATICTPLDIR/etc/postgresql/$i/main/* /etc/postgresql/$i/main 
    7         /etc/init.d/postgresql-$i start 
    8     done 
    9 else 
    10     /etc/init.d/postgresql-8.1 start 
     3        pg_dropcluster 7.4 main &> /dev/null 
     4        pg_dropcluster 8.1 main &> /dev/null 
     5        pg_createcluster 8.1 main 
     6        cp $STATICTPLDIR/etc/postgresql/8.1/main/* /etc/postgresql/8.1/main 
    117fi 
     8/etc/init.d/postgresql-8.1 start 
    129 
    1310 
     
    2320fi 
    2421smbpasswd -w $ldapadminpw 
    25  
    26  
    27 # adding tls support to slapd.conf 
    28 slapdtpl=/usr/share/sophomorix/config-templates/ldap/slapd-standalone.conf.template 
    29 if ! grep -q ^TLS $slapdtpl; then 
    30         cp $slapdtpl $slapdtpl.dpkg-old 
    31         cp $STATICTPLDIR$slapdtpl $slapdtpl 
    32 fi 
    3322 
    3423 
     
    6049        s/@@message3@@/${message3}/ 
    6150        s/@@basedn@@/${basedn}/g 
     51        s/@@tls_comment@@//g 
    6252        s/@@ldappassword@@/${ldapadminpw}/" $template > /etc/ldap/slapd.conf 
    6353 
     
    114104        addgroup openldap ssl-cert 
    115105 
    116         # create new ldap database 
    117         new_soph_version=`dpkg -l sophomorix-pgldap | grep 'sophomorix-pg' | { read status name version desc; echo "$version";}` 
    118         old_soph_version="0.0.0-0" 
    119         sophomorix-setup-pgldap --oldversion "$old_soph_version" --newversion "$new_soph_version" --new-database 
     106        # create a new ldap database with tricky sophomorix 
     107        sophomorix-setup-pgldap --oldversion=0.0.0-0 --newversion=0.0.0-0 --new-database 
    120108 
    121109        # new random password for ldap db user 
     
    126114        sed -e "s|^Password=.*|Password=$ldapdbpw|" -i /etc/linuxmuster/schulkonsole/db.conf 
    127115 
    128         # deactivate postgres 7.4 
    129         /etc/init.d/postgresql-7.4 stop 
    130         update-rc.d -f postgresql-7.4 remove 
    131  
    132116else 
    133117 
     
    135119        if [ "$update_ldap" = "yes" ]; then 
    136120                ldapdbpw=`grep ^Password /etc/linuxmuster/schulkonsole/db.conf | awk -F\= '{ print $2 }'` 
    137                 sophomorix-setup-pgldap --slapd-standalone --dbpw "$ldapdbpw" --keep-database 
     121                sophomorix-setup-pgldap --oldversion=0.0.0-0 --newversion=0.0.0-0 --dbpw "$ldapdbpw" --keep-database 
    138122        fi 
    139123 
Note: See TracChangeset for help on using the changeset viewer.