summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--service/static/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/service/static/config.go b/service/static/config.go
index 95fdbeee..a6931907 100644
--- a/service/static/config.go
+++ b/service/static/config.go
@@ -32,6 +32,10 @@ func (c *Config) Hydrate(cfg service.Config) error {
// Valid returns nil if config is valid.
func (c *Config) Valid() error {
+ if !c.Enable {
+ return nil
+ }
+
st, err := os.Stat(c.Dir)
if err != nil {
if os.IsNotExist(err) {