diff --git a/public/tools/rmt-client-setup-res b/public/tools/rmt-client-setup-res index 5f5517d5f..6ddc7df73 100755 --- a/public/tools/rmt-client-setup-res +++ b/public/tools/rmt-client-setup-res @@ -89,8 +89,6 @@ else fi echo "detect ${SLL_name} version... ${SLL_version}" -echo "Importing repomd.xml.key" -$RPM --import ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key echo "Disabling all repositories" dnf config-manager --disable $(dnf repolist -q | awk '{ print $1 }' | grep -v repo) @@ -127,6 +125,9 @@ $CURL --silent --show-error --insecure $REGURL/tools/rmt-client-setup --output r echo "Running rmt-client-setup $PARAMS" sh rmt-client-setup $PARAMS +echo "Importing repomd.xml.key" +$RPM --import ${REGURL}/repo/SUSE/Updates/${SLL_name}/${SLL_version}/x86_64/update/repodata/repomd.xml.key + if [[ ${SLL_version} > 8 ]]; then systemctl start suseconnect-keepalive.timer systemctl enable suseconnect-keepalive.timer