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"