debian/cubicweb-ctl.postrm
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 21 Feb 2017 10:12:47 +0100
branch3.23
changeset 11961 a25e52cd8be4
parent 10559 5821ae654dfd
child 11832 e8be49ecb522
permissions -rw-r--r--
[web] fix os.rename usage on windows when destination exists os.rename on windows will raise OSError (or WindowsError subclass) when if destination file already exists. Also check that exception is EEXIST. There is an attempt to fix in f6ba947c but using IOError instead of OSError. Closes #14214794

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