mirror of
https://github.com/linka-cloud/d2vm.git
synced 2024-11-26 01:26:25 +00:00
control packages by release version
Signed-off-by: LEI WANG <ssst0n3@gmail.com>
This commit is contained in:
parent
0f86904ddc
commit
b575dbc89e
@ -29,19 +29,22 @@ RUN ARCH="$([ "$(uname -m)" = "x86_64" ] && echo amd64 || echo arm64)"; \
|
||||
iputils-ping && \
|
||||
find /boot -type l -exec rm {} \;
|
||||
|
||||
{{ if gt .Release.VersionID "14.04" }}
|
||||
{{ if ge .Release.VersionID "14.04" }}
|
||||
RUN ARCH="$([ "$(uname -m)" = "x86_64" ] && echo amd64 || echo arm64)"; \
|
||||
apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
|
||||
iproute2 \
|
||||
iproute2
|
||||
{{ end }}
|
||||
|
||||
{{ if gt .Release.VersionID "16.04" }}
|
||||
{{ if ge .Release.VersionID "16.04" }}
|
||||
RUN ARCH="$([ "$(uname -m)" = "x86_64" ] && echo amd64 || echo arm64)"; \
|
||||
apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
|
||||
systemd-sysv \
|
||||
systemd
|
||||
{{ end }}
|
||||
|
||||
{{ if gt .Release.VersionID "16.04" }}
|
||||
RUN systemctl preset-all
|
||||
{{ end }}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user