Bug 25485: Remove tiny_mce symlink during pre install of deb package
authorDavid Cook <dcook@prosentient.com.au>
Mon, 18 May 2020 05:41:34 +0000 (05:41 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 20 May 2020 08:15:13 +0000 (09:15 +0100)
This patch removes the tiny_mce symlink before Koha package installation
using the same method that we used when we removed the YUI symlink
in 2015.

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

debian/koha-common.preinst

index b9d43ab..648a2e1 100644 (file)
@@ -5,4 +5,7 @@ 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
 
+# Bug 25485: remove the tiny_mce symlink if there's one in the way preventing upgrades
+[ -h /usr/share/koha/intranet/htdocs/intranet-tmpl/lib/tiny_mce ] && rm /usr/share/koha/intranet/htdocs/intranet-tmpl/lib/tiny_mce
+
 exit 0