From 19d43694a120dfb662b01d3eb72f1381160c058f Mon Sep 17 00:00:00 2001
From: ih84ds
Date: Fri, 16 Mar 2018 12:15:20 -0500
Subject: [PATCH] always remove run lockfile
Ensure lockfile does not exist before startup. This works around issue #21
---
docker-entrypoint.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh
index a95a506..731ff53 100755
--- a/docker-entrypoint.sh
+++ b/docker-entrypoint.sh
@@ -42,4 +42,7 @@ else
echo "Skipping avahi daemon, enable with env variable AVAHI=1"
fi;
+# remove any previous lockfile that wasn't cleaned up
+rm -f /var/run/lock/netatalk
+
exec netatalk -d