Commit 0bea0a84 authored by Markus Frosch's avatar Markus Frosch
Browse files

cosmic: Fix os-release detection

parent 9207abd1
Pipeline #3205 passed with stage
in 1 minute and 41 seconds
......@@ -16,7 +16,7 @@ RUN groupadd -g 1000 jenkins \
&& echo 'jenkins ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
RUN curl https://packages.icinga.com/icinga.key | apt-key add - \
&& DIST=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) \
&& DIST="$(lsb_release -sc)" \
&& echo "deb http://packages.icinga.com/ubuntu icinga-${DIST} main" > /etc/apt/sources.list.d/${DIST}-icinga.list
RUN git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
......
......@@ -16,7 +16,7 @@ RUN groupadd -g 1000 jenkins \
&& echo 'jenkins ALL=(ALL:ALL) NOPASSWD: ALL' | tee -a /etc/sudoers
RUN curl https://packages.icinga.com/icinga.key | apt-key add - \
&& DIST=$(awk -F"[)(]+" '/VERSION=/ {print $2}' /etc/os-release) \
&& DIST="$(lsb_release -sc)" \
&& echo "deb http://packages.icinga.com/ubuntu icinga-${DIST} main" > /etc/apt/sources.list.d/${DIST}-icinga.list
RUN git clone https://git.icinga.com/build-docker/scripts.git /usr/local/bin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment