From 9eeaffbd634909253aa1aed1cc4dc8f64e2ba3a3 Mon Sep 17 00:00:00 2001 From: Christoph Junghans Date: Thu, 7 Mar 2024 12:44:01 -0700 Subject: [PATCH] ubuntu: support older versions --- ubuntu | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ubuntu b/ubuntu index 9f4b881..0858fab 100644 --- a/ubuntu +++ b/ubuntu @@ -45,7 +45,11 @@ RUN apt-get install -y \ RUN apt-get purge --autoremove -y RUN rm -rf /var/lib/apt/lists/* -RUN pip3 install --break-system-packages pyh5md +RUN . /etc/os-release && if [ "${VERSION_ID}" = "22.04" ]; then \ + pip3 install pyh5md; \ +else \ + pip3 install --break-system-packages pyh5md; \ +fi RUN useradd -m -G sudo -u 1001 espressopp RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers USER espressopp