[migration] add rollback when replace_eid_sequence_with_eid_numrange fails
If we get here, the current transaction is aborted, so if we are to
assume everything is fine and continue we need to rollback first.
#!/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