Skip to content

Commit

Permalink
Avoid touching domains.conf when not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Ferrand committed Aug 8, 2018
1 parent b5d92f8 commit b354a55
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#  ![](https://raw.githubusercontent.com/adferrand/docker-letsencrypt-dns/master/images/logo_from_realies_200px.png) adferrand/letsencrypt-dns
![](https://img.shields.io/badge/tags-latest-lightgrey.svg) [![](https://images.microbadger.com/badges/version/adferrand/letsencrypt-dns:2.5.1.svg) ![](https://images.microbadger.com/badges/image/adferrand/letsencrypt-dns:2.5.1.svg)](https://microbadger.com/images/adferrand/letsencrypt-dns:2.5.1)
![](https://img.shields.io/badge/tags-latest-lightgrey.svg) [![](https://images.microbadger.com/badges/version/adferrand/letsencrypt-dns:2.5.2.svg) ![](https://images.microbadger.com/badges/image/adferrand/letsencrypt-dns:2.5.2.svg)](https://microbadger.com/images/adferrand/letsencrypt-dns:2.5.2)

* [Container functionalities](#container-functionalities)
* [Why use this Docker](#why-use-this-docker-)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.1
2.5.2
6 changes: 4 additions & 2 deletions files/watch-domains.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ fi

current_hash=
while true; do
# Ensure domain.conf exists
touch /etc/letsencrypt/domains.conf
# Ensure domains.conf exists
if [ ! -f /etc/letsencrypt/domains.conf ]; then
touch /etc/letsencrypt/domains.conf
fi

# Calculate the new domains.conf file hash
new_hash=`md5sum /etc/letsencrypt/domains.conf | awk '{ print $1 }'`
Expand Down

0 comments on commit b354a55

Please sign in to comment.