Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/update.sh b/update.sh
index bbae5928..08d0af44 100755
--- a/update.sh
+++ b/update.sh
@@ -49,6 +49,10 @@ EXCL_DOCKER+="
nc-update.sh
nc-autoupdate-ncp.sh
"
+
+# wait for other apt processes
+test -f /var/lib/apt/lists/lock && { echo "apt is currently running. Try again later"; exit 1; }
+
cp etc/library.sh /usr/local/etc/
source /usr/local/etc/library.sh