From 8eef0e0b5d9614bd70a0a4cbf6e8d328f61dd176 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Tue, 19 Sep 2023 03:41:40 +0300 Subject: [PATCH] For xenial download buildbot_entrypoint.sh only if it's missing --- lib/worker_multibuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/worker_multibuild.py b/lib/worker_multibuild.py index 8b2a724..f51abcd 100644 --- a/lib/worker_multibuild.py +++ b/lib/worker_multibuild.py @@ -84,7 +84,7 @@ RUN wget https://github.com/Yelp/dumb-init/releases/download/v1.2.5/dumb-init_1. RUN dpkg -i dumb-init_*.deb && rm -f dumb-init_*.deb # buildbot entrypoint -RUN wget -O /usr/local/bin/buildbot_entrypoint.sh https://git.bitmessage.org/Bitmessage/buildbot-scripts/raw/branch/master/docker/xenial/entrypoint.sh +RUN [ -f /usr/local/bin/buildbot_entrypoint.sh ] || wget -O /usr/local/bin/buildbot_entrypoint.sh https://git.bitmessage.org/Bitmessage/buildbot-scripts/raw/branch/master/docker/xenial/entrypoint.sh RUN chmod +x /usr/local/bin/buildbot_entrypoint.sh RUN echo 'buildbot ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers