File: install

package info (click to toggle)
apf-firewall 9.7%2Brev1-5.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster
  • size: 536 kB
  • sloc: sh: 2,065; makefile: 41
file content (23 lines) | stat: -rwxr-xr-x 708 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash

if [ -d "/usr/local/dshield" ]; then
	echo "dshield client already installed, aborting."
	exit 1
fi

if [ -f "dshield-3.2.tar.gz" ]; then
	tar xfz dshield-3.2.tar.gz
	mv dshield /usr/local
	ln -s /usr/local/dshield/dshield /usr/local/sbin
	ln -s /usr/local/dshield/dshieldpy.conf /etc/dshieldpy.conf
	cp cron.ds /etc/cron.daily/ds
	chmod 755 /etc/cron.daily/ds
fi

echo "Installation completed."
echo "Binary:  /usr/local/sbin/dshield"
echo "Config:  /usr/local/dshield/dshieldpy.conf"
echo "Cronjob: /etc/cron.daily/ds"
echo ""
echo "Warning: Running the binary from command line will send reports to dshield.org;"
echo "repeated execution may result in your IP being banned from the service."