Skip to content

Commit 3af1629

Browse files
arnesetzerwiktorn
authored andcommitted
fix: Create workaround for hard shutdown and orphaned area file.
1 parent 0c224eb commit 3af1629

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

docker-entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ for f in /docker-entrypoint-initdb.d/*; do
3636
echo
3737
done
3838

39+
# deleting areas file if present. Otherwise the link to /db/db/osm3s_vX.X.X_areas will not be created and the area is not availible.
40+
if [ -f /dev/shm/osm3s_areas ]; then
41+
echo "Found orphaned /dev/shm/osm3s_areas file. Deleting it."
42+
rm /dev/shm/osm3s_areas
43+
fi
44+
3945
if [[ ! -f /db/init_done ]]; then
4046
echo "No database directory. Initializing"
4147
touch /db/changes.log

0 commit comments

Comments
 (0)