mirror of
https://github.com/ceph/s3-tests.git
synced 2025-02-16 11:16:31 +00:00
Merge pull request #55 from ceph/wip-bootstrap-pkg-install
bootstrap: apt/yum install the list of dependencies Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
This commit is contained in:
commit
0aa8e1ce3f
1 changed files with 4 additions and 6 deletions
10
bootstrap
10
bootstrap
|
@ -9,9 +9,8 @@ if [ -f /etc/debian_version ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -n "$missing" ]; then
|
if [ -n "$missing" ]; then
|
||||||
echo "$0: missing required packages, please install them:" 1>&2
|
echo "$0: missing required DEB packages. Installing via sudo." 1>&2
|
||||||
echo " sudo apt-get install $missing"
|
sudo apt-get -y install $missing
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ -f /etc/redhat-release ]; then
|
if [ -f /etc/redhat-release ]; then
|
||||||
|
@ -21,9 +20,8 @@ if [ -f /etc/redhat-release ]; then
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
if [ -n "$missing" ]; then
|
if [ -n "$missing" ]; then
|
||||||
echo "$0: missing required packages, please install them:" 1>&2
|
echo "$0: missing required RPM packages. Installing via sudo." 1>&2
|
||||||
echo " sudo yum install $missing"
|
sudo yum -y install $missing
|
||||||
exit 1
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue