aboutsummaryrefslogtreecommitdiff
path: root/security/crowdsec/files/pkg-install.in
blob: 74bccb12c1abc1263ab23217f86a96b35bcf76ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

case $2 in
        "POST-INSTALL")
                cscli hub update -o human --error > /dev/null
                if [ -e /var/run/crowdsec.running ]; then
                        service crowdsec start
                        rm -f /var/run/crowdsec.running
                fi
                ;;
esac