Skip to content

Commit

Permalink
Fix arch setup typos
Browse files Browse the repository at this point in the history
Use `uname -m` instead of `arch`, there is
no such command in later Debian versions.
  • Loading branch information
gaborcsardi committed Dec 17, 2023
1 parent ba05c28 commit 3488ada
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion containers/Dockerfile-lenny
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY cran.txt /tmp/cran.txt
COPY set-cran.sh /tmp/set-cran.sh
RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh

COPY etch-entrypoint.sh /usr/local/bin/entrypoint.sh
COPY lenny-entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]

CMD [ "R" ]
2 changes: 1 addition & 1 deletion containers/Dockerfile-squeeze
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ COPY cran.txt /tmp/cran.txt
COPY set-cran.sh /tmp/set-cran.sh
RUN R_VERSION=${R_VERSION} /tmp/set-cran.sh

COPY etch-entrypoint.sh /usr/local/bin/entrypoint.sh
COPY squeeze-entrypoint.sh /usr/local/bin/entrypoint.sh
ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]

CMD [ "R" ]
2 changes: 1 addition & 1 deletion containers/lenny-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# We need linux32 for an x86_64 host where `arch` returns `x86_64`, but
# we cannot use it on an arm64 host, because it fails currently.

if [ "`arch`" = "x86_64" ]; then
if [ "`uname -m`" = "x86_64" ]; then
exec linux32 ${1+"$@"}
else
exec ${1+"$@"}
Expand Down
2 changes: 1 addition & 1 deletion containers/squeeze-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# We need linux32 for an x86_64 host where `arch` returns `x86_64`, but
# we cannot use it on an arm64 host, because it fails currently.

if [ "`arch`" = "x86_64" ]; then
if [ "`uname -m`" = "x86_64" ]; then
exec linux32 ${1+"$@"}
else
exec ${1+"$@"}
Expand Down
2 changes: 1 addition & 1 deletion containers/wheezy-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# We need linux32 for an x86_64 host where `arch` returns `x86_64`, but
# we cannot use it on an arm64 host, because it fails currently.

if [ "`arch`" = "x86_64" ]; then
if [ "`uname -m`" = "x86_64" ]; then
exec linux32 ${1+"$@"}
else
exec ${1+"$@"}
Expand Down

0 comments on commit 3488ada

Please sign in to comment.