Skip to content

Commit 3bf32eb

Browse files
committed
dont install pdns by default
1 parent f66350d commit 3bf32eb

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

Diff for: installer/cape2.sh

+25-25
Original file line numberDiff line numberDiff line change
@@ -1110,31 +1110,6 @@ EOF
11101110

11111111
sudo modprobe br_netfilter
11121112
sudo sysctl -p
1113-
1114-
### PDNS
1115-
sudo apt-get install -y git binutils-dev libldns-dev libpcap-dev libdate-simple-perl libdatetime-perl libdbd-mysql-perl
1116-
cd /tmp || return
1117-
1118-
# From pevious install
1119-
if [ -d /tmp/passivedns ]; then
1120-
sudo rm -rf /tmp/passivedns
1121-
fi
1122-
git clone https://github.com/gamelinux/passivedns.git
1123-
cd passivedns/ || return
1124-
autoreconf --install
1125-
./configure
1126-
make -j"$(getconf _NPROCESSORS_ONLN)"
1127-
sudo checkinstall -D --pkgname=passivedns --default
1128-
chown ${USER}:${USER} -R /tmp/passivedns/
1129-
sudo -u ${USER} bash -c '/etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install unicorn capstone'
1130-
sudo -u ${USER} bash -c 'cd /tmp/passivedns/ ; /etc/poetry/bin/poetry --directory /opt/CAPEv2/ run pip install unicorn capstone'
1131-
sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
1132-
1133-
if [ -d /tmp/passivedns ]; then
1134-
cd /tmp || return
1135-
sudo rm -rf /tmp/passivedns
1136-
fi
1137-
11381113
}
11391114

11401115
function install_clamav() {
@@ -1523,6 +1498,29 @@ function install_postgres_pg_activity() {
15231498
sudo apt-get install -y pg-activity
15241499
}
15251500

1501+
function install_passivedns() {
1502+
sudo apt-get install -y git binutils-dev libldns-dev libpcap-dev libdate-simple-perl libdatetime-perl libdbd-mysql-perl
1503+
cd /tmp || return
1504+
1505+
# From pevious install
1506+
if [ -d /tmp/passivedns ]; then
1507+
sudo rm -rf /tmp/passivedns
1508+
fi
1509+
git clone https://github.com/gamelinux/passivedns.git
1510+
cd passivedns/ || return
1511+
autoreconf --install
1512+
./configure
1513+
make -j"$(getconf _NPROCESSORS_ONLN)"
1514+
sudo checkinstall -D --pkgname=passivedns --default
1515+
chown ${USER}:${USER} -R /tmp/passivedns/
1516+
sed -i 's/APT::Periodic::Unattended-Upgrade "1";/APT::Periodic::Unattended-Upgrade "0";/g' /etc/apt/apt.conf.d/20auto-upgrades
1517+
1518+
if [ -d /tmp/passivedns ]; then
1519+
cd /tmp || return
1520+
sudo rm -rf /tmp/passivedns
1521+
fi
1522+
}
1523+
15261524
# Doesn't work ${$1,,}
15271525
COMMAND=$(echo "$1"|tr "{A-Z}" "{a-z}")
15281526

@@ -1678,6 +1676,8 @@ case "$COMMAND" in
16781676
install_DIE;;
16791677
'fluentd')
16801678
install_fluentd;;
1679+
'passivedns')
1680+
install_passivedns;;
16811681
*)
16821682
usage;;
16831683
esac

0 commit comments

Comments
 (0)