Wait for apt to finish before proceeding with cloudron-setup

This commit is contained in:
Johannes Zellner
2016-12-30 16:08:06 +01:00
parent 4268ba54bf
commit 73e6e519a3

View File

@@ -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"