File crowdsec-hub-update of Package crowdsec
#!/usr/bin/sh # Update Crowdsec hub info, then upgrade installed configs, and reload crowdsec_service='crowdsec.service' /usr/bin/cscli hub update /usr/bin/cscli hub upgrade if systemctl is-active --quiet "${crowdsec_service}"; then echo "Reloading ${crowdsec_service}" /usr/bin/systemctl reload "${crowdsec_service}" fi