From 22fbe70ef466adca498dea91a98e683abb6bf73d Mon Sep 17 00:00:00 2001
From: Eric Lippmann <eric.lippmann@icinga.com>
Date: Thu, 2 Jun 2022 13:29:12 +0200
Subject: [PATCH] Fix permissions of /usr/local/bin

See https://git.icinga.com/build-docker/scripts/-/issues/1
---
 15.2/Dockerfile | 3 +--
 15.3/Dockerfile | 3 +--
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/15.2/Dockerfile b/15.2/Dockerfile
index 3e53880..7e1ae0a 100644
--- a/15.2/Dockerfile
+++ b/15.2/Dockerfile
@@ -26,8 +26,7 @@ RUN rpm --import https://packages.icinga.com/icinga.key \
 RUN groupadd -g 1000 build \
  && useradd -u 1000 -g 1000 -m build \
  && echo 'Defaults:build !requiretty' | tee -a /etc/sudoers \
- && echo 'build ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers \
- && chown build.build /usr/local/bin
+ && echo 'build ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
 
 RUN git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
 RUN icinga-provide-go
diff --git a/15.3/Dockerfile b/15.3/Dockerfile
index fce1ae7..261c5ca 100644
--- a/15.3/Dockerfile
+++ b/15.3/Dockerfile
@@ -26,8 +26,7 @@ RUN rpm --import https://packages.icinga.com/icinga.key \
 RUN groupadd -g 1000 build \
  && useradd -u 1000 -g 1000 -m build \
  && echo 'Defaults:build !requiretty' | tee -a /etc/sudoers \
- && echo 'build ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers \
- && chown build.build /usr/local/bin
+ && echo 'build ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
 
 RUN git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
 RUN icinga-provide-go
-- 
GitLab