#!/bin/sh

set -e

case "$1" in
  install|upgrade)
    if dpkg --compare-versions "$2" lt "2.2.3.dfsg-2.4"; then
      # Make sure the new Moodle can install its files in yui - #689506
      if [ -h /usr/share/moodle/lib/yui ] ; then
        rm -f /usr/share/moodle/lib/yui
      fi
    fi
  ;;
esac

#DEBHELPER#
