diff options
| author | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-02-19 14:39:08 +0100 |
|---|---|---|
| committer | RincewindsHat <12514511+RincewindsHat@users.noreply.github.com> | 2023-02-19 14:39:08 +0100 |
| commit | 74b6984047d330a3cc7cb7f63645849fe7676c63 (patch) | |
| tree | 65a26800103d8d66f7e6cb4acfbfc9f315ec750b /.github/prepare_debian.sh | |
| parent | 423284edfa980fc3fdb51ab20af96685a988ba97 (diff) | |
| parent | c07206f2ccc2356aa74bc6813a94c2190017d44e (diff) | |
| download | monitoring-plugins-74b6984.tar.gz | |
Merge branch 'master' into check_icmp_cleanup
Diffstat (limited to '.github/prepare_debian.sh')
| -rwxr-xr-x | .github/prepare_debian.sh | 62 |
1 files changed, 46 insertions, 16 deletions
diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index 4021c104..5222659e 100755 --- a/.github/prepare_debian.sh +++ b/.github/prepare_debian.sh | |||
| @@ -5,27 +5,58 @@ set -e | |||
| 5 | 5 | ||
| 6 | export DEBIAN_FRONTEND=noninteractive | 6 | export DEBIAN_FRONTEND=noninteractive |
| 7 | 7 | ||
| 8 | sed "s/main/non-free contrib/g" /etc/apt/sources.list.d/debian.sources > /etc/apt/sources.list.d/debian-nonfree.sources | ||
| 8 | apt-get update | 9 | apt-get update |
| 9 | apt-get -y install software-properties-common | 10 | apt-get -y install software-properties-common |
| 10 | if [ $(lsb_release -is) = "Debian" ]; then | 11 | if [ $(lsb_release -is) = "Debian" ]; then |
| 11 | apt-add-repository non-free | 12 | apt-add-repository non-free |
| 12 | apt-get update | 13 | apt-get update |
| 13 | fi | 14 | fi |
| 14 | apt-get -y install perl autotools-dev libdbi-dev libldap2-dev libpq-dev libradcli-dev libnet-snmp-perl procps | 15 | apt-get -y install perl \ |
| 15 | apt-get -y install libdbi0-dev libdbd-sqlite3 libssl-dev dnsutils snmp-mibs-downloader libsnmp-perl snmpd | 16 | autotools-dev \ |
| 16 | apt-get -y install fping snmp netcat-openbsd smbclient vsftpd apache2 ssl-cert postfix libhttp-daemon-ssl-perl | 17 | libdbi-dev \ |
| 17 | apt-get -y install libdbd-sybase-perl libnet-dns-perl | 18 | libldap2-dev \ |
| 18 | apt-get -y install slapd ldap-utils | 19 | libpq-dev \ |
| 19 | apt-get -y install gcc make autoconf automake gettext | 20 | libradcli-dev \ |
| 20 | apt-get -y install faketime | 21 | libnet-snmp-perl \ |
| 21 | apt-get -y install libmonitoring-plugin-perl | 22 | procps \ |
| 22 | apt-get -y install libcurl4-openssl-dev | 23 | libdbi0-dev \ |
| 23 | apt-get -y install liburiparser-dev | 24 | libdbd-sqlite3 \ |
| 24 | apt-get -y install squid | 25 | libssl-dev \ |
| 25 | apt-get -y install openssh-server | 26 | dnsutils \ |
| 26 | apt-get -y install mariadb-server mariadb-client libmariadb-dev | 27 | snmp-mibs-downloader \ |
| 27 | apt-get -y install cron iputils-ping | 28 | libsnmp-perl \ |
| 28 | apt-get -y install iproute2 | 29 | snmpd \ |
| 30 | fping \ | ||
| 31 | snmp \ | ||
| 32 | netcat-openbsd \ | ||
| 33 | smbclient \ | ||
| 34 | vsftpd \ | ||
| 35 | apache2 \ | ||
| 36 | ssl-cert \ | ||
| 37 | postfix \ | ||
| 38 | libhttp-daemon-ssl-perl \ | ||
| 39 | libdbd-sybase-perl \ | ||
| 40 | libnet-dns-perl \ | ||
| 41 | slapd \ | ||
| 42 | ldap-utils \ | ||
| 43 | gcc \ | ||
| 44 | make \ | ||
| 45 | autoconf \ | ||
| 46 | automake \ | ||
| 47 | gettext \ | ||
| 48 | faketime \ | ||
| 49 | libmonitoring-plugin-perl \ | ||
| 50 | libcurl4-openssl-dev \ | ||
| 51 | liburiparser-dev \ | ||
| 52 | squid \ | ||
| 53 | openssh-server \ | ||
| 54 | mariadb-server \ | ||
| 55 | mariadb-client \ | ||
| 56 | libmariadb-dev \ | ||
| 57 | cron \ | ||
| 58 | iputils-ping \ | ||
| 59 | iproute2 | ||
| 29 | 60 | ||
| 30 | # remove ipv6 interface from hosts | 61 | # remove ipv6 interface from hosts |
| 31 | if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then | 62 | if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then |
| @@ -37,7 +68,6 @@ ip addr show | |||
| 37 | 68 | ||
| 38 | cat /etc/hosts | 69 | cat /etc/hosts |
| 39 | 70 | ||
| 40 | |||
| 41 | # apache | 71 | # apache |
| 42 | a2enmod ssl | 72 | a2enmod ssl |
| 43 | a2ensite default-ssl | 73 | a2ensite default-ssl |
