Browse Source

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

Nils Wisiol 4 years ago
parent
commit
7757b8963c
1 changed files with 3 additions and 0 deletions
  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