Skip to content

Commit

Permalink
CKEditor refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gruberroland committed Sep 18, 2023
1 parent 0a7149b commit 04b80a5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lam-packaging/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
ldap-account-manager (8.5.RC1-1) unstable; urgency=medium

* new upstream release
* Fix "Multiple embeded and minified javascript library" by linking
directory (Closes: #1042528)

-- Roland Gruber <[email protected]> Fri, 08 Sep 2023 16:01:22 +0200

Expand Down
1 change: 1 addition & 0 deletions lam-packaging/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Depends: php (>= 7.4), php-ldap,
libapache2-mod-php | libapache2-mod-fcgid | php-fpm,
apache2 (>= 2.4.0) | httpd,
gettext, fonts-dejavu,
ckeditor (>= 4.0), libjs-jquery-jstree (>= 3.3.0),
debconf (>= 0.2.26) | debconf-2.0, ${misc:Depends}
Recommends: php-opcache
Suggests: ldap-server, php-mcrypt, ldap-account-manager-lamdaemon, perl
Expand Down
8 changes: 8 additions & 0 deletions lam-packaging/debian/postinst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ fi
. /usr/share/debconf/confmodule
db_version 2.0 || [ $? -lt 30 ]

# 3rd party libs
jsThirdPartyLibs='ckeditor jstree'
for jsThirdPartyLib in $jsThirdPartyLibs; do
if [ ! -L /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib} ] ; then
ln -s /usr/share/javascript/${jsThirdPartyLib} /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib}
fi
done

cd /usr/share/ldap-account-manager/config-samples/profiles
files=`ls -a default.*`
for file in $files; do
Expand Down
9 changes: 9 additions & 0 deletions lam-packaging/debian/postrm
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,15 @@ if [ -f /usr/share/debconf/confmodule ]; then
done
fi

# 3rd party libs
jsThirdPartyLibs='ckeditor jstree'
for jsThirdPartyLib in $jsThirdPartyLibs; do
if [ -L /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib} ] ; then
rm /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib}
fi
done


set -e
if [ "$1" = "purge" ]; then
rm -r -f /usr/share/ldap-account-manager
Expand Down
17 changes: 17 additions & 0 deletions lam-packaging/debian/preinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

set -e

if [ "$1" != "upgrade" ]; then
exit 0
fi

# 3rd party libs
jsThirdPartyLibs='ckeditor jstree'
for jsThirdPartyLib in $jsThirdPartyLibs; do
if [ -L /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib} ] ; then
rm /usr/share/ldap-account-manager/templates/lib/extra/${jsThirdPartyLib}
fi
done

#DEBHELPER#

0 comments on commit 04b80a5

Please sign in to comment.