diff --git a/leapp-repository-install.sh b/leapp-repository-install.sh index 32fb9949515adf3ae89cab33a9187f7b6cbebf79..a6a2c1dbca3617d5123edccee3f879c78aeedd51 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