From 8ba33c9f00598104780da3e85f5ee190f17eb8f6 Mon Sep 17 00:00:00 2001 From: ZhouWeitao Date: Mon, 3 Apr 2023 09:51:26 +0800 Subject: [PATCH] enable migration repo in cmdline Signed-off-by: ZhouWeitao --- dist/install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/install.sh b/dist/install.sh index c4fb307..728ba4a 100755 --- a/dist/install.sh +++ b/dist/install.sh @@ -86,7 +86,7 @@ migration_repo_config() { } install_7to7() { - out=$(yum -y install centos2anolis-*.an7.noarch 2>&1) + out=$(yum -y install centos2anolis-*.an7.noarch --enablerepo=migration 2>&1) exit_code=$? if [ "$exit_code" -ne 0 ] then @@ -99,7 +99,7 @@ install_7to7() { } install_8to8() { - out=$(yum -y install centos2anolis-*.an8.noarch 2>&1) + out=$(yum -y install centos2anolis-*.an8.noarch --enablerepo=migration 2>&1) exit_code=$? if [ "$exit_code" -ne 0 ] then @@ -115,7 +115,7 @@ install_7to8() { yum install -y python-pip yum remove -y python-requests python-urllib3 /usr/bin/pip2 uninstall requests urllib3 -y 2>/dev/null - out=$(yum -y install leapp 2>&1) + out=$(yum -y install leapp --enablerepo=migration 2>&1) exit_code=$? if [ "$exit_code" -ne 0 ] then -- Gitee