Changeset 843


Ignore:
Timestamp:
09/06/10 12:15:34 (17 months ago)
Author:
tschmitt
Message:
  • update-logins.sh, Fix: Logins mit id < 10000 wurden nicht gelistet (#204).
  • postinst: Moodles ldap host url wird ggf. nach  http://localhost geändert.
Location:
main/linuxmuster-base/tags/1.5.3.3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/linuxmuster-base/tags/1.5.3.3/debian/changelog

    r818 r843  
     1linuxmuster-base (1.5.3.3-etch9) etch; urgency=low 
     2 
     3  * update-logins.sh: fixed logins with id < 10000 (#204). 
     4  * postinst: fixing moodle's ldap host url (#284). 
     5 
     6 -- Thomas Schmitt <schmitt@lmz-bw.de>  Mon,  6 Sep 2010 12:03:21 +0200 
     7 
    18linuxmuster-base (1.5.3.3-etch8) etch; urgency=low 
    29 
  • main/linuxmuster-base/tags/1.5.3.3/debian/postinst

    r770 r843  
    515515 
    516516   # repairing moodle 
    517    if [ -e /etc/moodle/config.php ]; then 
    518     if ! grep -q "\$CFG->wwwroot = '/moodle';" /etc/moodle/config.php; then 
    519      cp /etc/moodle/config.php /etc/moodle/config.php.dpkg-old 
    520      sed -e "s/\$CFG->wwwroot =.*/\$CFG->wwwroot = \'\/moodle\';/g" -i /etc/moodle/config.php 
    521     fi 
    522    fi 
    523    if [ -d /usr/share/moodle ]; then 
    524     [[ -e /usr/share/moodle/moodle && ! -L /usr/share/moodle/moodle ]] && mv /usr/share/moodle/moodle /usr/share/moodle/moodle.dpkg-old 
    525     [ -L /usr/share/moodle/moodle ] || ln -s . /usr/share/moodle/moodle 
     517   if psql -U postgres -qtl | grep -q moodle; then 
     518    if [ -e /etc/moodle/config.php ]; then 
     519     if ! grep -q "\$CFG->wwwroot = '/moodle';" /etc/moodle/config.php; then 
     520      cp /etc/moodle/config.php /etc/moodle/config.php.dpkg-old 
     521      sed -e "s/\$CFG->wwwroot =.*/\$CFG->wwwroot = \'\/moodle\';/g" -i /etc/moodle/config.php 
     522     fi 
     523    fi 
     524    if [ -d /usr/share/moodle ]; then 
     525     [[ -e /usr/share/moodle/moodle && ! -L /usr/share/moodle/moodle ]] && mv /usr/share/moodle/moodle /usr/share/moodle/moodle.dpkg-old 
     526     [ -L /usr/share/moodle/moodle ] || ln -s . /usr/share/moodle/moodle 
     527    fi 
     528    # repairing ldap host url (#284) 
     529    hosturl="$(psql -U postgres -d moodle -qtc "SELECT value FROM mdl_config_plugins WHERE name = 'host_url'")" 
     530    if [ "$hosturl" != " ldap://localhost" ]; then 
     531     echo "Repairing moodle's ldap host url ..." 
     532     psql -U postgres -d moodle -qc "UPDATE mdl_config_plugins SET value = 'ldap://localhost' WHERE name = 'host_url';" 
     533    fi 
    526534   fi 
    527535 
  • main/linuxmuster-base/tags/1.5.3.3/share/scripts/update-logins.sh

    r810 r843  
    4848  msg=false 
    4949  # read smbstatus file and grep logins from it 
    50   grep ^[1-9] $status | while read line; do 
     50  grep "!^\s*![1-9]" $status | while read line; do 
    5151   machine="$(echo $line | awk '{ print $4 }')" 
    5252   echo $hosts | grep -qw $machine || continue 
Note: See TracChangeset for help on using the changeset viewer.