Ensure 'apt-get update' runs before 'apt-get install'
Change-Id: I0d4305f3f1812631111636aa56c019b3316e98e4
This commit is contained in:
parent
45fba5c25b
commit
35b770a364
|
@ -75,6 +75,10 @@ if [[ -e /etc/os-release ]]; then
|
|||
esac
|
||||
done
|
||||
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
sudo apt-get update
|
||||
fi
|
||||
|
||||
if [[ $INSTALL_DATABASE -eq 1 ]]; then
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server
|
||||
|
@ -99,7 +103,6 @@ if [[ -e /etc/os-release ]]; then
|
|||
|
||||
if [[ $INSTALL_FAAFO -eq 1 ]]; then
|
||||
if [[ $ID = 'ubuntu' || $ID = 'debian' ]]; then
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y python-dev python-pip supervisor git zlib1g-dev libmysqlclient-dev
|
||||
#elif [[ $ID = 'centos' || $ID = 'fedora' || $ID = 'rhel' ]]; then
|
||||
# sudo yum install -y python-devel python-pip
|
||||
|
|
Loading…
Reference in New Issue