From 0510ef300a166db9a4109d51369efbf716a23572 Mon Sep 17 00:00:00 2001 From: kissshot <4530897+kkkgo@users.noreply.github.com> Date: Sat, 18 May 2024 21:22:53 +0800 Subject: [PATCH] dev test --- .github/workflows/docker-test-amd64-dev.yml | 4 +++- src/init.sh | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-test-amd64-dev.yml b/.github/workflows/docker-test-amd64-dev.yml index d16260b..082599d 100644 --- a/.github/workflows/docker-test-amd64-dev.yml +++ b/.github/workflows/docker-test-amd64-dev.yml @@ -24,4 +24,6 @@ jobs: with: push: true platforms: linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 - tags: sliamb/paopaodns:dev \ No newline at end of file + tags: sliamb/paopaodns:dev + secrets: | + "DEVLOG=yes" \ No newline at end of file diff --git a/src/init.sh b/src/init.sh index 082b985..6af6c4e 100644 --- a/src/init.sh +++ b/src/init.sh @@ -247,6 +247,9 @@ if ! ps -ef | grep -v grep | grep -q redis-server; then fi sleep 3 sed "s/{CORES}/$CORES/g" /data/unbound.conf | sed "s/{POWCORES}/$POWCORES/g" | sed "s/{FDLIM}/$FDLIM/g" | sed "s/{MEM1}/$MEM1/g" | sed "s/{MEM2}/$MEM2/g" | sed "s/{MEM3}/$MEM3/g" | sed "s/{ETHIP}/$ETHIP/g" | sed "s/{DNS_SERVERNAME}/$DNS_SERVERNAME/g" >/tmp/unbound.conf +if [ "$DEVLOG" = "yes" ]; then + sed -i "s/verbosity: 0/verbosity: 5/g" /tmp/unbound.conf +fi if [ "$safemem" = "no" ]; then sed -i "s/#safemem//g" /tmp/unbound.conf else