2
0
mirror of https://github.com/linka-cloud/d2vm.git synced 2025-04-20 01:27:40 +00:00

replace .Release.Version with .Release.VersionID to fix #65

Signed-off-by: Lei Wang <ssst0n3@gmail.com>
This commit is contained in:
Lei Wang 2025-04-10 16:21:07 +08:00 committed by Adphi
parent a0039dbae7
commit 85b144fe63

View File

@ -2,7 +2,7 @@ FROM {{ .Image }}
USER root USER root
{{ $version := atoi .Release.Version }} {{ $version := atoi .Release.VersionID }}
{{ if le $version 8 }} {{ if le $version 8 }}
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \ RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \