1
1
Fork 0
mirror of https://github.com/dnscrypt/dnscrypt-server-docker synced 2024-05-09 20:06:10 +02:00

Add bash and find from findutils in order to avoid surprises from busybox

This commit is contained in:
Frank Denis 2017-04-27 09:03:55 +02:00
parent 74fb53de51
commit 6661b87530
7 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ MAINTAINER Frank Denis
ENV SERIAL 1
ENV BUILD_DEPS make gcc musl-dev git ldns-dev libevent-dev expat-dev shadow autoconf file libexecinfo-dev
ENV RUNTIME_DEPS libressl ldns ldns-tools libevent expat libtool libexecinfo coreutils drill
ENV RUNTIME_DEPS libressl ldns ldns-tools libevent expat libtool libexecinfo coreutils drill findutils bash
RUN set -x && \
apk --update upgrade && apk add $RUNTIME_DEPS $BUILD_DEPS

View File

@ -1,17 +1,17 @@
#! /bin/sh
#! /usr/bin/env bash
KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys"
STKEYS_DIR="${KEYS_DIR}/short-term"
prune() {
find "$STKEYS_DIR" -type f -cmin +1440 -exec rm -f {} \;
/usr/bin/find "$STKEYS_DIR" -type f -cmin +1440 -exec rm -f {} \;
}
rotation_needed() {
if [ ! -f "${STKEYS_DIR}/dnscrypt.cert" ]; then
echo true
else
if [ $(find "$STKEYS_DIR" -type f -cmin -720 -print -quit | wc -l | sed 's/[^0-9]//g') -le 0 ]; then
if [ $(/usr/bin/find "$STKEYS_DIR" -type f -cmin -720 -print -quit | wc -l | sed 's/[^0-9]//g') -le 0 ]; then
echo true
else
echo false

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
set -e

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
sleep 1800
@ -6,7 +6,7 @@ KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys"
STKEYS_DIR="${KEYS_DIR}/short-term"
rotation_needed() {
if [ $(find "$STKEYS_DIR" -type f -cmin -720 -print -quit | wc -l | sed 's/[^0-9]//g') -le 0 ]; then
if [ $(/usr/bin/find "$STKEYS_DIR" -type f -cmin -720 -print -quit | wc -l | sed 's/[^0-9]//g') -le 0 ]; then
echo true
else
echo false

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
drill -DQ -p 553 NS . @127.0.0.1 && \
drill -tDQ -p 553 NS . @127.0.0.1

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
KEYS_DIR="/opt/dnscrypt-wrapper/etc/keys"
ZONES_DIR="/opt/unbound/etc/unbound/zones"

View File

@ -1,4 +1,4 @@
#! /bin/sh
#! /usr/bin/env bash
sleep 300