From 2d237ba9eab555fde2dd5e3c83f46f78fd09ed97 Mon Sep 17 00:00:00 2001 From: wangzhe Date: Sun, 17 Mar 2024 15:21:58 +0800 Subject: [PATCH] update source package installation script Signed-off-by: wangzhe --- leapp-repository-install.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/leapp-repository-install.sh b/leapp-repository-install.sh index 32fb994..a6a2c1d 100644 --- a/leapp-repository-install.sh +++ b/leapp-repository-install.sh @@ -18,6 +18,12 @@ while getopts "v:" opt; do elif [[ "$OPTARG" == "8.4" ]];then echo "put $OPTARG with -v" sed -i "s/anolis\/\(\w*\.*\w*\)\//anolis\/$OPTARG\//g" ./leapp_upgrade_repositories.repo + elif [[ "$OPTARG" == "8.6" ]];then + echo "put $OPTARG with -v" + sed -i "s/anolis\/\(\w*\.*\w*\)\//anolis\/$OPTARG\//g" ./leapp_upgrade_repositories.repo + elif [[ "$OPTARG" == "8.8" ]];then + echo "put $OPTARG with -v" + sed -i "s/anolis\/\(\w*\.*\w*\)\//anolis\/$OPTARG\//g" ./leapp_upgrade_repositories.repo else echo "-v $OPTARG is not available" exit 0 @@ -36,7 +42,7 @@ if [ -d /usr/share/leapp-repository ]; then fi # check deps -deps_list=(dnf pciutils libselinux-python policycoreutils-python patch) +deps_list=(dnf pciutils libselinux-python policycoreutils-python patch python2-psutil) for dep in ${deps_list[@]} do rpm -q $dep > /dev/null @@ -63,7 +69,7 @@ if [ $ret == "1" ]; then exit 1 fi -version=0.13.0 +version=0.13.3 rm -rf leapp-repository-$version tar xf leapp-repository-${version}.tar.gz cd leapp-repository-$version -- Gitee