diff options
Diffstat (limited to '.github/prepare_debian.sh')
-rwxr-xr-x | .github/prepare_debian.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index 3f4674a2..cffe98c5 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh | |||
@@ -1,7 +1,7 @@ | |||
1 | #!/bin/bash | 1 | #!/bin/bash |
2 | 2 | ||
3 | set -x | 3 | set -x |
4 | set -e | 4 | set -euo pipefail |
5 | 5 | ||
6 | export DEBIAN_FRONTEND=noninteractive | 6 | export DEBIAN_FRONTEND=noninteractive |
7 | 7 | ||
@@ -24,6 +24,7 @@ apt-get -y install perl \ | |||
24 | libpq-dev \ | 24 | libpq-dev \ |
25 | libradcli-dev \ | 25 | libradcli-dev \ |
26 | libnet-snmp-perl \ | 26 | libnet-snmp-perl \ |
27 | libsnmp-dev \ | ||
27 | procps \ | 28 | procps \ |
28 | libdbi0-dev \ | 29 | libdbi0-dev \ |
29 | libdbd-sqlite3 \ | 30 | libdbd-sqlite3 \ |
@@ -59,9 +60,11 @@ apt-get -y install perl \ | |||
59 | mariadb-server \ | 60 | mariadb-server \ |
60 | mariadb-client \ | 61 | mariadb-client \ |
61 | libmariadb-dev \ | 62 | libmariadb-dev \ |
63 | libmariadb-dev-compat \ | ||
62 | cron \ | 64 | cron \ |
63 | iputils-ping \ | 65 | iputils-ping \ |
64 | iproute2 | 66 | iproute2 \ |
67 | libjson-perl | ||
65 | 68 | ||
66 | # remove ipv6 interface from hosts | 69 | # remove ipv6 interface from hosts |
67 | sed '/^::1/d' /etc/hosts > /tmp/hosts | 70 | sed '/^::1/d' /etc/hosts > /tmp/hosts |
@@ -109,6 +112,8 @@ mkdir -p /var/lib/snmp/mib_indexes | |||
109 | sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf | 112 | sed -e 's/^agentaddress.*/agentaddress 127.0.0.1/' -i /etc/snmp/snmpd.conf |
110 | service snmpd start | 113 | service snmpd start |
111 | 114 | ||
115 | sed 's/^mibs ://' -i /etc/snmp/snmp.conf | ||
116 | |||
112 | # start cron, will be used by check_nagios | 117 | # start cron, will be used by check_nagios |
113 | cron | 118 | cron |
114 | 119 | ||
@@ -127,5 +132,5 @@ sed "/NP_HOST_TLS_CERT/s/.*/'NP_HOST_TLS_CERT' => '$(hostname)',/" -i /src/.gith | |||
127 | 132 | ||
128 | # create some test files to lower inodes | 133 | # create some test files to lower inodes |
129 | for i in $(seq 10); do | 134 | for i in $(seq 10); do |
130 | touch /media/ramdisk2/test.$1 | 135 | touch /media/ramdisk2/test.$i |
131 | done | 136 | done |