Skip to content

Commit

Permalink
Fixed bug where cp -f actually failed, (alibaba#4942)
Browse files Browse the repository at this point in the history
because the symlink already existed.
  • Loading branch information
maskshell authored Nov 9, 2023
1 parent b407420 commit fc3cfc5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker/base/amd64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN \
yum clean all && yum makecache

RUN \
/bin/cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
/usr/bin/ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'root:Hello1234' | chpasswd && \
groupadd -r admin && useradd -g admin admin && \
yum install -y man && \
Expand Down
2 changes: 1 addition & 1 deletion docker/base/arm64/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ RUN \
yum clean all && yum makecache

RUN \
/bin/cp -f /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
/usr/bin/ln -fs /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'root:Hello1234' | chpasswd && \
groupadd -r admin && useradd -g admin admin && \
yum install -y man && \
Expand Down

0 comments on commit fc3cfc5

Please sign in to comment.