3 Star 0 Fork 5

src-openEuler/canal

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
backport-Fixed-bug-where-cp-f-actually-failed.patch 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
zhangxingrong 提交于 2024-08-15 14:37 . add some upstream patchs
From fc3cfc5c0c6ec35ba8499afc0476dedde8cdb594 Mon Sep 17 00:00:00 2001
From: mask <[email protected]>
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 && \
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/canal.git
[email protected]:src-openeuler/canal.git
src-openeuler
canal
canal
master

搜索帮助