Skip to content

Commit

Permalink
ubuntu: support older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
junghans committed Mar 7, 2024
1 parent b9021fc commit 9eeaffb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ubuntu
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9eeaffb

Please sign in to comment.