mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
modified depending on comments
This commit is contained in:
parent
c557dea948
commit
d7d3324abf
@ -1,24 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
os=`cat /etc/*release*`
|
||||
|
||||
if [[ "$os" =~ "Red Hat" ]] || [[ "$os" =~ "suse" ]]; then
|
||||
yum install git
|
||||
if [ $? != 0 ]; then
|
||||
echo "Install git Failed." >> $log_file
|
||||
exit 1
|
||||
fi
|
||||
elif [[ "$os" =~ "ubuntu" ]]; then
|
||||
apt-get install git
|
||||
if [ $? != 0 ]; then
|
||||
echo "Install git Failed." >> $log_file
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
cd
|
||||
|
||||
git clone git@github.com:xuweibj/openbmc_simulator.git
|
||||
|
||||
exit $?
|
||||
|
@ -1,6 +1,21 @@
|
||||
start:setup_openbmc_simulator
|
||||
description:install dependent packaages, setup and start openbmc simulator
|
||||
cmd:/opt/xcat/share/xcat/tools/autotest/testcase/simulator/install_git.sh
|
||||
cmd:#!/bin/bash
|
||||
os=`cat /etc/*release*`
|
||||
if [[ "$os" =~ "Red Hat" ]] || [[ "$os" =~ "suse" ]]; then
|
||||
yum install git
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
elif [[ "$os" =~ "ubuntu" ]]; then
|
||||
apt-get install git
|
||||
if [ $? != 0 ]; then
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
check:rc==0
|
||||
cmd:cd /root/ && git clone git@github.com:xuweibj/openbmc_simulator.git
|
||||
check:rc==0
|
||||
cmd:/root/openbmc_simulator/simulator &
|
||||
check:rc==0
|
||||
|
Loading…
x
Reference in New Issue
Block a user