Bug 14055: remove symlink that breaks upgrades

Old versions of koha-common would put in a symlink to the system YUI
libraries. This causes upgrade problems, so we look out for that and zap
it if it's there.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
This commit is contained in:
Robin Sheat 2015-04-24 14:48:53 +12:00 committed by Tomas Cohen Arazi
parent 6495a57af6
commit b7e2bb6737
1 changed files with 6 additions and 0 deletions

6
debian/koha-common.preinst vendored Normal file
View File

@ -0,0 +1,6 @@
#!/bin/sh
set -e
# Bug 14055 - remove the yui symlink if there's one in the way preventing upgrades
[ -h /usr/share/koha/opac/htdocs/opac-tmpl/lib/yui ] && rm /usr/share/koha/opac/htdocs/opac-tmpl/lib/yui