debian/cubicweb-ctl.postrm
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 23 Jun 2016 15:45:30 +0200
changeset 11363 e5fe836df6f1
parent 10559 5821ae654dfd
child 11832 e8be49ecb522
permissions -rw-r--r--
[migration] Add IF EXISTS on DROP CONSTRAINT problem encountered on migration of a legacy database

#!/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