From 35b770a364865274172f4724a8e8dd65c4ac902c Mon Sep 17 00:00:00 2001 From: James Dempsey Date: Sun, 31 May 2015 18:22:09 +1200 Subject: [PATCH] Ensure 'apt-get update' runs before 'apt-get install' Change-Id: I0d4305f3f1812631111636aa56c019b3316e98e4 --- contrib/install.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/install.sh b/contrib/install.sh index 1ede601..1bd7cf0 100755 --- a/contrib/install.sh +++ b/contrib/install.sh @@ -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