diff options
Diffstat (limited to '.github/prepare_debian.sh')
-rwxr-xr-x | .github/prepare_debian.sh | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/.github/prepare_debian.sh b/.github/prepare_debian.sh index dcf778bc..f7b6cf9f 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 | ||
@@ -59,18 +59,16 @@ apt-get -y install perl \ | |||
59 | mariadb-server \ | 59 | mariadb-server \ |
60 | mariadb-client \ | 60 | mariadb-client \ |
61 | libmariadb-dev \ | 61 | libmariadb-dev \ |
62 | libmariadb-dev-compat \ | ||
62 | cron \ | 63 | cron \ |
63 | iputils-ping \ | 64 | iputils-ping \ |
64 | iproute2 | 65 | iproute2 \ |
66 | libjson-perl | ||
65 | 67 | ||
66 | # remove ipv6 interface from hosts | 68 | # remove ipv6 interface from hosts |
67 | if [ $(ip addr show | grep "inet6 ::1" | wc -l) -eq "0" ]; then | 69 | sed '/^::1/d' /etc/hosts > /tmp/hosts |
68 | sed '/^::1/d' /etc/hosts > /tmp/hosts | 70 | cp -f /tmp/hosts /etc/hosts |
69 | cp -f /tmp/hosts /etc/hosts | ||
70 | fi | ||
71 | |||
72 | ip addr show | 71 | ip addr show |
73 | |||
74 | cat /etc/hosts | 72 | cat /etc/hosts |
75 | 73 | ||
76 | # apache | 74 | # apache |
@@ -131,5 +129,5 @@ sed "/NP_HOST_TLS_CERT/s/.*/'NP_HOST_TLS_CERT' => '$(hostname)',/" -i /src/.gith | |||
131 | 129 | ||
132 | # create some test files to lower inodes | 130 | # create some test files to lower inodes |
133 | for i in $(seq 10); do | 131 | for i in $(seq 10); do |
134 | touch /media/ramdisk2/test.$1 | 132 | touch /media/ramdisk2/test.$i |
135 | done | 133 | done |