Browse Source

Fix non-existent cache on first run breaking locking

Alois Mahdal 3 years ago
parent
commit
0525eb079c
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/imapdomo.skel

+ 1
- 0
src/imapdomo.skel View File

97
     #
97
     #
98
     debug -v NoLock
98
     debug -v NoLock
99
     $NoLock && return 0
99
     $NoLock && return 0
100
+    mkdir -p "$IMAPDOMO_USER_CACHE"
100
     date +"$$@%s" > "$IMAPDOMO_USER_CACHE/lock"
101
     date +"$$@%s" > "$IMAPDOMO_USER_CACHE/lock"
101
     debug -f "$IMAPDOMO_USER_CACHE/lock"
102
     debug -f "$IMAPDOMO_USER_CACHE/lock"
102
 }
103
 }