debian/cubicweb-ctl.postrm
author Rémi Cardona <remi.cardona@logilab.fr>
Tue, 13 Oct 2015 12:33:26 +0200
changeset 10719 065b5ac5c039
parent 10559 5821ae654dfd
child 11832 e8be49ecb522
permissions -rw-r--r--
Rename gettext to cwgettext, use stdlib gettext cubicweb/gettext.py was a copy of Python 2.6's gettext.py with the context patch from bug https://bugs.python.org/issue2504 Instead of keeping that full copy, just inherit from gettext.GNUTranslations and add the context-related stuff.

#!/bin/sh -e

if [ "$1" = "remove" ]; then
        update-rc.d cubicweb remove >/dev/null
fi
 
if [ "$1" = "purge" ] ; then
        rm -rf /etc/cubicweb.d/
        rm -rf /var/log/cubicweb/
        rm -rf /var/lib/cubicweb/
fi

#DEBHELPER#
 
exit 0