Projects
Eulaceura:Mainline:GA
canal
_service:obs_scm:backport-Fixed-bug-where-cp-f-...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:backport-Fixed-bug-where-cp-f-actually-failed.patch of Package canal
From fc3cfc5c0c6ec35ba8499afc0476dedde8cdb594 Mon Sep 17 00:00:00 2001 From: mask <5113279+maskshell@users.noreply.github.com> Date: Thu, 9 Nov 2023 15:31:04 +0800 Subject: [PATCH] Fixed bug where `cp -f` actually failed, (#4942) because the symlink already existed. --- docker/base/amd64/Dockerfile | 2 +- docker/base/arm64/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/base/amd64/Dockerfile b/docker/base/amd64/Dockerfile index 845fa7328d..fefdf1dd73 100644 --- a/docker/base/amd64/Dockerfile +++ b/docker/base/amd64/Dockerfile @@ -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 && \ diff --git a/docker/base/arm64/Dockerfile b/docker/base/arm64/Dockerfile index 0eb5e6ea83..f4b1ce253c 100644 --- a/docker/base/arm64/Dockerfile +++ b/docker/base/arm64/Dockerfile @@ -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 && \
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2