#!/bin/sh

case $2 in
        "POST-INSTALL")
                if [ -e /var/run/crowdsec_mirror.running ]; then
                        service crowdsec_mirror start
                        rm -f /var/run/crowdsec_mirror.running
                fi
                ;;
esac
