debian/cubicweb-ctl.postrm
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 13 Apr 2017 13:57:32 +0200
branch3.25
changeset 12159 8a1306c43656
parent 11832 e8be49ecb522
permissions -rw-r--r--
[web] Do not try to rmtree symlinks in rmtreecontent() There is a symlink in data directory (created by generate_static_dir() method) and trying to rmtree() it will fail with an OSError. So we unlink() it instead.

#!/bin/sh -e

if [ "$1" = "purge" ] ; then
        rm -rf /etc/cubicweb.d/
        rm -rf /var/log/cubicweb/
        rm -rf /var/lib/cubicweb/
fi

#DEBHELPER#
 
exit 0