diff --git a/mgrpxy/cmd/cache/kubernetes.go b/mgrpxy/cmd/cache/kubernetes.go index bcf1678415d..d421b4dcb00 100644 --- a/mgrpxy/cmd/cache/kubernetes.go +++ b/mgrpxy/cmd/cache/kubernetes.go @@ -29,9 +29,5 @@ func kubernetesCacheClear( return utils.Errorf(err, L("failed to remove cached data")) } - if _, err := cnx.Exec("squid", "-z", "--foreground"); err != nil { - return utils.Errorf(err, L("failed to re-create the cache directories")) - } - return kubernetes.Restart(namespace, kubernetes.ProxyApp) } diff --git a/mgrpxy/cmd/cache/podman.go b/mgrpxy/cmd/cache/podman.go index 3070aedc7e9..283560ab742 100644 --- a/mgrpxy/cmd/cache/podman.go +++ b/mgrpxy/cmd/cache/podman.go @@ -27,9 +27,5 @@ func podmanCacheClear( return utils.Errorf(err, L("failed to remove cached data")) } - if _, err := cnx.Exec("sh", "-c", "squid -z --foreground"); err != nil { - return utils.Errorf(err, L("failed to re-create the cache directories")) - } - return systemd.RestartService(podman.ProxyService) } diff --git a/uyuni-tools.changes.nadvornik.cache_fix b/uyuni-tools.changes.nadvornik.cache_fix new file mode 100644 index 00000000000..5e6d3ebee6a --- /dev/null +++ b/uyuni-tools.changes.nadvornik.cache_fix @@ -0,0 +1 @@ +- Fix calling of squid -z in mgrpxy cache clear (bsc#1247644)