diff --git a/kubernetes1.20.changes b/kubernetes1.20.changes index 1328756..00cee32 100644 --- a/kubernetes1.20.changes +++ b/kubernetes1.20.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Feb 7 16:21:21 UTC 2022 - Dirk Müller + +- avoid bashism in client-common postinstall script (bsc#1195391) + ------------------------------------------------------------------- Wed Dec 08 15:37:51 UTC 2021 - rbrown@suse.com diff --git a/kubernetes1.20.spec b/kubernetes1.20.spec index ea4bf5f..0989e7f 100644 --- a/kubernetes1.20.spec +++ b/kubernetes1.20.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -71,6 +71,7 @@ for management and discovery. # packages to build containerized control plane + %package apiserver Summary: Kubernetes apiserver for container image Group: System/Management @@ -302,9 +303,8 @@ ln -s -f %{_sysconfdir}/alternatives/kubectl %{buildroot}%{_bindir}/kubectl %fdupes -s %{buildroot} %post client-common -export baseversion="%{baseversion}" %{_sbindir}/update-alternatives \ - --install %{_bindir}/kubectl kubectl %{_bindir}/kubectl%{baseversion} ${baseversion/./} + --install %{_bindir}/kubectl kubectl %{_bindir}/kubectl%{baseversion} %(echo %{baseversion} | tr -d .) %postun client-common if [ ! -f %{_bindir}/kubectl%{baseversion} ] ; then