Adding debian version 20241201-1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
485e3244ed
commit
9c8ce610a0
11 changed files with 250 additions and 0 deletions
34
debian/dokuwiki-templates-extra.prerm
vendored
Executable file
34
debian/dokuwiki-templates-extra.prerm
vendored
Executable file
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "${1}" in
|
||||
remove|upgrade|deconfigure)
|
||||
DIRECTORIES="$(cd /usr/share/dokuwiki/templates-extra && ls -d */ | sed -e 's|/$||g')"
|
||||
|
||||
# Removing all templates
|
||||
for TEMPLATE in ${DIRECTORIES}
|
||||
do
|
||||
if [ -L "/var/lib/dokuwiki/lib/tpl/${TEMPLATE}" ]
|
||||
then
|
||||
if [ "$(dirname $(readlink /var/lib/dokuwiki/lib/tpl/"${TEMPLATE}"))" = "/usr/share/dokuwiki/templates-extra" ]
|
||||
then
|
||||
rm -f "/var/lib/dokuwiki/lib/tpl/${TEMPLATE}"
|
||||
fi
|
||||
fi
|
||||
done
|
||||
;;
|
||||
|
||||
failed-upgrade)
|
||||
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "prerm called with unknown argument \`${1}'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
Loading…
Add table
Add a link
Reference in a new issue