Browse Source

Only use 'certificates' by default if it exists

Alois Mahdal 3 years ago
parent
commit
122e83b51b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/imapdomo.skel

+ 1
- 1
src/imapdomo.skel View File

@@ -160,7 +160,7 @@ main() {
160 160
     CfgDir="$IMAPDOMO_CFGDIR"
161 161
     LogDir="$IMAPDOMO_USER_CACHE/logs"
162 162
     HeaderDir="$IMAPDOMO_USER_CACHE/headers"
163
-    Certs="$IMAPDOMO_CFGDIR/certificates"
163
+    test -f "$IMAPDOMO_CFGDIR/certificates" && Certs="$IMAPDOMO_CFGDIR/certificates"
164 164
     NoLock=false
165 165
     Debug=false
166 166
     #shellcheck disable=SC2034