From 73e6e519a3df487ddf39ecaf71b40aef996174b8 Mon Sep 17 00:00:00 2001 From: Johannes Zellner Date: Fri, 30 Dec 2016 16:08:06 +0100 Subject: [PATCH] Wait for apt to finish before proceeding with cloudron-setup --- scripts/cloudron-setup | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/cloudron-setup b/scripts/cloudron-setup index 671326f19..46c4102cf 100755 --- a/scripts/cloudron-setup +++ b/scripts/cloudron-setup @@ -129,6 +129,13 @@ echo "" echo " Join us at https://chat.cloudron.io for any questions." echo "" +echo -n "=> Wait for package manager to finish ..." +while fuser /var/lib/dpkg/lock &>> "${LOG_FILE}"; do + echo -n "." + sleep 1 +done +echo "" # linefeed + echo "=> Update package repositories ..." if ! apt-get update &>> "${LOG_FILE}"; then echo "Could not update package repositories"