Changeset 843 for main/linuxmuster-base/tags/1.5.3.3/debian/postinst
- Timestamp:
- 09/06/10 12:15:34 (21 months ago)
- File:
-
- 1 edited
-
main/linuxmuster-base/tags/1.5.3.3/debian/postinst (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
main/linuxmuster-base/tags/1.5.3.3/debian/postinst
r770 r843 515 515 516 516 # 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 526 534 fi 527 535
Note: See TracChangeset
for help on using the changeset viewer.
