From 1e9a10a4ab9f869904d4bb76001060c3006c1546 Mon Sep 17 00:00:00 2001 From: Elio Bischof Date: Mon, 27 Jun 2022 17:35:11 +0200 Subject: [PATCH] fix: gpg disable order --- internal/operator/nodeagent/dep/package-manager-init.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/operator/nodeagent/dep/package-manager-init.go b/internal/operator/nodeagent/dep/package-manager-init.go index abeaa4944..75d5bd136 100644 --- a/internal/operator/nodeagent/dep/package-manager-init.go +++ b/internal/operator/nodeagent/dep/package-manager-init.go @@ -32,6 +32,10 @@ func (p *PackageManager) debSpecificInit() error { func (p *PackageManager) remSpecificInit() error { + if err := p.remSpecificDisableGPGRepoCheckForGcloudRepo(); err != nil { + return err + } + return p.rembasedInstall( &Software{Package: "yum-utils"}, &Software{Package: "yum-plugin-versionlock"}, @@ -52,10 +56,6 @@ func (p *PackageManager) remSpecificDisableGPGRepoCheckForGcloudRepo() error { func (p *PackageManager) remSpecificUpdatePackages() error { - if err := p.remSpecificDisableGPGRepoCheckForGcloudRepo(); err != nil { - return err - } - conflictingCronFile := "/etc/cron.daily/yumupdate.sh" removeConflictingCronFile := true _, err := os.Stat(conflictingCronFile)