1 Star 0 Fork 10

崔立昊/leapp

forked from anolis/leapp 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
leapp-install.sh 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
#! /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."
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/cui-lihao/leapp.git
git@gitee.com:cui-lihao/leapp.git
cui-lihao
leapp
leapp
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385