代码拉取完成,页面将自动刷新
同步操作将从 anolis/leapp 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#! /bin/bash
deps_list=(python-six python-setuptools python-requests findutils)
for dep in ${deps_list[@]}
do
rpm -q $dep > /dev/null
if [ $? -ne 0 ]; then
echo "$dep is not installed, but is required by leapp"
echo "It will install $dep first"
yum -y install $dep
fi
done
# check python-urllib3
rpm -q python-urllib3 > /dev/null 2>&1
if [ $? -ne 0 ]; then
echo "python-urllib3 is not installed successfully"
pip uninstall -y requests urllib3
yum -y reinstall python-requests
fi
version=0.12.0
tar xf leapp-${version}.tar.gz
cd leapp-${version}
/usr/bin/python2 setup.py build
cp man/snactor.1 /usr/share/man/man1
mkdir -p /usr/share/leapp
mkdir -p /usr/share/leapp/report_schema
cp report-schema-v110.json /usr/share/leapp/report_schema/report-schema.json
mkdir -p /var/lib/leapp
mkdir -p /etc/leapp
mkdir -p /etc/leapp/repos.d
mkdir -p /etc/leapp/answers
mkdir -p /var/log/leapp
cp etc/leapp/leapp.conf /etc/leapp
cp etc/leapp/logger.conf /etc/leapp
cp man/leapp.1 /usr/share/man/man1
/usr/bin/python2 setup.py install -O1 --skip-build --root /
cd ../
rm -rf leapp-$version
echo "Install leapp successfully."
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。