source: moodle/trunk/fuentes/debian/preinst @ 1331

Last change on this file since 1331 was 1331, checked in by jrpelegrina, 3 years ago

Updated to moodle 3.0.3

File size: 895 bytes
Line 
1#!/bin/sh
2
3set -e
4
5case "$1" in
6  install|upgrade)
7    if dpkg --compare-versions "$2" lt "2.2.3.dfsg-2.4"; then
8      # Make sure the new Moodle can install its files in yui - #689506
9      if [ -h /usr/share/moodle/lib/yui ] ; then
10        rm -f /usr/share/moodle/lib/yui
11      fi
12    fi
13    if dpkg --compare-versions "$2" lt "2.5.1-1"; then
14      # Remove directories we're going to replace with symlinks
15      if [ -d /usr/share/moodle/lib/adodb ]; then
16        rm -rf /usr/share/moodle/lib/adodb
17      fi
18      if [ -d /usr/share/moodle/lib/htmlpurifier/HTMLPurifier ]; then
19        rm -rf /usr/share/moodle/lib/htmlpurifier/HTMLPurifier
20      fi
21    fi
22    if dpkg --compare-versions "$2" eq "2.5.3-3"; then
23      # Remove symlink
24      if [ -L /usr/share/moodle/lib/yuilib/3.9.1/build ]; then
25        rm -f /usr/share/moodle/lib/yuilib/3.9.1/build
26      fi
27    fi
28  ;;
29esac
30
31#DEBHELPER#
Note: See TracBrowser for help on using the repository browser.