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:
parent
a0039dbae7
commit
85b144fe63
@ -2,7 +2,7 @@ FROM {{ .Image }}
|
||||
|
||||
USER root
|
||||
|
||||
{{ $version := atoi .Release.Version }}
|
||||
{{ $version := atoi .Release.VersionID }}
|
||||
|
||||
{{ if le $version 8 }}
|
||||
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user