浏览代码

feat(www): remove obsolete autogernated certs upon next startup

Nils Wisiol 4 年之前
父节点
当前提交
7757b8963c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      www/entrypoint.sh

+ 3 - 0
www/entrypoint.sh

@@ -73,6 +73,9 @@ else
     # inform the user
     echo "Found all certificates, using user-provided certificates."
 
+    # remove any obsolete autogenerated certs
+    rm -f /autocert/*
+
     # setup certificate path
     export CERT_PATH=/etc/ssl/private/
 fi