From b5bfc809a2835188da74df8e79607346bbb19a20 Mon Sep 17 00:00:00 2001 From: WJQSERVER Date: Tue, 8 Oct 2024 05:33:41 +0800 Subject: [PATCH] 24w11a --- config/blacklist.json | 4 ++-- config/whitelist.json | 6 +++--- docker/dockerfile/dev/Dockerfile | 1 + init.sh | 4 ++++ 4 files changed, 10 insertions(+), 5 deletions(-) diff --git a/config/blacklist.json b/config/blacklist.json index 4134bd0..286d110 100644 --- a/config/blacklist.json +++ b/config/blacklist.json @@ -1,8 +1,8 @@ { "blacklist": [ + "black/list", "test/test1", - "example/repo2", - "another/repo3" + "example/repo2" ] } \ No newline at end of file diff --git a/config/whitelist.json b/config/whitelist.json index ca3c8bc..d7ba053 100644 --- a/config/whitelist.json +++ b/config/whitelist.json @@ -1,8 +1,8 @@ { "whitelist": [ - "test/test1", - "example/repo2", - "another/repo3" + "white/list", + "white/test1", + "example/white" ] } \ No newline at end of file diff --git a/docker/dockerfile/dev/Dockerfile b/docker/dockerfile/dev/Dockerfile index 6bfb81f..04d7a63 100644 --- a/docker/dockerfile/dev/Dockerfile +++ b/docker/dockerfile/dev/Dockerfile @@ -14,6 +14,7 @@ RUN VERSION=$(curl -s https://raw.githubusercontent.com/${USER}/${REPO}/main/DEV wget -O /data/${APPLICATION}/${APPLICATION} https://github.com/${USER}/${REPO}/releases/download/$VERSION/${APPLICATION} RUN wget -O /data/${APPLICATION}/config.yaml https://raw.githubusercontent.com/${USER}/${REPO}/main/config/config.yaml RUN wget -O /data/${APPLICATION}/blacklist.json https://raw.githubusercontent.com/${USER}/${REPO}/main/config/blacklist.json +RUN wget -O /data/${APPLICATION}/whitelist.json https://raw.githubusercontent.com/${USER}/${REPO}/main/config/whitelist.json RUN wget -O /usr/local/bin/init.sh https://raw.githubusercontent.com/${USER}/${REPO}/main/init.sh RUN chmod +x /data/${APPLICATION}/${APPLICATION} RUN chmod +x /usr/local/bin/init.sh diff --git a/init.sh b/init.sh index 4c4d8c0..86db1e1 100644 --- a/init.sh +++ b/init.sh @@ -10,6 +10,10 @@ if [ ! -f /data/${APPLICATON}/config/blacklist.json ]; then cp /data/${APPLICATON}/blacklist.json /data/${APPLICATON}/config/blacklist.json fi +if [ ! -f /data/${APPLICATON}/config/whitelist.json ]; then + cp /data/${APPLICATON}/whitelist.json /data/${APPLICATON}/config/whitelist.json +fi + if [ ! -f /data/${APPLICATON}/config/config.yaml ]; then cp /data/${APPLICATON}/config.yaml /data/${APPLICATON}/config/config.yaml fi