Skip to content

Commit

Permalink
Change: Fix Slackware current (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
n-thumann authored Nov 8, 2024
1 parent 731ac63 commit 551101d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions operating_systems/slackware/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ ARG TAG
FROM ${BASEIMAGE}:${TAG}
ARG UPDATED=true

RUN echo "Y" | slackpkg update \
# When updating, we need to upgrade slackpkg itself first. Otherwise upgrade-all will abort
# We can skip this steps, if slackpkg or all packages are already up-to-date
&& if [ "$UPDATED" = true ]; then slackpkg upgrade slackpkg || slackpkg upgrade-all || true; fi \
RUN slackpkg update \
# When updating, we need to upgrade slackpkg itself first. Otherwise upgrade-all will abort.
# We can skip this steps, if slackpkg or all packages are already up-to-date.
# slackpkg upgrade also needs to be called twice, because some packages might fail in the first run, which work in the second.
&& if [ "$UPDATED" = true ]; then slackpkg upgrade slackpkg && slackpkg upgrade-all || true && slackpkg upgrade-all; fi \
&& slackpkg install openssh \
&& rm -rf /var/lib/slackpkg/* \
&& useradd demo \
Expand Down

0 comments on commit 551101d

Please sign in to comment.