From 61a41a10ce698738f17e50753e50b7ea2401a9d5 Mon Sep 17 00:00:00 2001 From: Johannes Date: Fri, 25 Nov 2016 14:26:36 +0100 Subject: [PATCH] Add apt-get update to cloudron-setup This was reported to be needed on some providers to be able to install curl --- scripts/cloudron-setup | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index 25211e578..23687cd95 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -71,6 +71,12 @@ echo " Follow setup logs in a second terminal with:" echo " $ tail -f ${LOG_FILE}" echo "" +echo "=> Update package repositories ..." +if ! apt-get update &>> "${LOG_FILE}"; then + echo "Could not update package repositories" + exit 1 +fi + echo "=> Installing setup dependencies ..." if ! apt-get install curl -y &>> "${LOG_FILE}"; then echo "Could not install curl"