Blob
1 #!/bin/sh3 prereqs_httpban() {4 grep -q _httpban /etc/doas.conf || error doas.conf not ready5 }7 install_httpban() {8 node http-ban && {9 useradd 2>/dev/null -s /sbin/nologin -d /var/empty _httpban10 crontab -u _httpban - <<-..11 */5 * * * * http-ban12 ..13 groupinstall -m 755 -o root:bin http-ban /usr/local/bin14 }15 }17 state_httpban() {18 doas -u _httpban http-ban19 }
