Merge "base: print release version in case of running unsupported one"
This commit is contained in:
commit
20aad9dc48
@ -275,8 +275,8 @@ RUN {{ macros.install_packages(base_centos_yum_repo_packages | customizable("cen
|
|||||||
# Ensure lsb_release exists
|
# Ensure lsb_release exists
|
||||||
{{ macros.install_packages(['lsb-release']) }}
|
{{ macros.install_packages(['lsb-release']) }}
|
||||||
|
|
||||||
RUN if [ $(lsb_release -r -s) != "{{ supported_distro_release }}" ]; then \
|
RUN RELEASE=$(lsb_release -r -s); if [ $RELEASE != "{{ supported_distro_release }}" ]; then \
|
||||||
echo "Only release '{{ supported_distro_release }}' is supported on {{ base_distro }}"; false; fi
|
echo "Only release '{{ supported_distro_release }}' is supported on {{ base_distro }} while you have '$RELEASE'."; false; fi
|
||||||
|
|
||||||
# Customize PS1 bash shell
|
# Customize PS1 bash shell
|
||||||
# enlarge 'system users' range so 'haproxy' package will not complain
|
# enlarge 'system users' range so 'haproxy' package will not complain
|
||||||
|
Loading…
Reference in New Issue
Block a user