Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-06-12 22:31:25 +0300
committerKamil Trzciński <ayufan@ayufan.eu>2017-06-12 22:31:25 +0300
commitd7de6b25b36ae245c9befdd09162a169b9d28651 (patch)
tree629f44637b2992faa9fd928d7cbb6ebf0f21ed7e
parent34a68fc5297982c62c5b3947be84555fe3a99dc3 (diff)
parent6d1c05958788883ad58481ed95ebab3657736982 (diff)
Merge branch 'fix-fail-to-read-update-file' into 'master'
Don't try to update domains if reading the update file fails See merge request !32
-rw-r--r--domains.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/domains.go b/domains.go
index 1fed6324..000aa42e 100644
--- a/domains.go
+++ b/domains.go
@@ -133,6 +133,8 @@ func watchDomains(rootDomain string, updater domainsUpdater, interval time.Durat
update, err := ioutil.ReadFile(".update")
if err != nil && !os.IsNotExist(err) {
log.Println("Failed to read update timestamp:", err)
+ time.Sleep(interval)
+ continue
}
// If it's the same ignore