diff options
author | elijah <elijah@riseup.net> | 2017-06-28 13:23:02 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2017-06-28 13:23:02 -0700 |
commit | de892c3821b2053f23ca6a91bf097b05a150ff41 (patch) | |
tree | d859a4e01558554366114f240f147a79fc35dc21 /provider_base/services/static.rb | |
parent | 98b6713afff0eec77fdbfe5d1a079607e6ed5b2c (diff) |
static - gracefully handle incorrect static site configs
Diffstat (limited to 'provider_base/services/static.rb')
-rw-r--r-- | provider_base/services/static.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/provider_base/services/static.rb b/provider_base/services/static.rb index d020ba26..4c7d2e59 100644 --- a/provider_base/services/static.rb +++ b/provider_base/services/static.rb @@ -1,2 +1,4 @@ -self['dns']['aliases'] += self.static.domains.keys -self['dns']['aliases'].uniq! +if self['static'] && self['static']['domains'] + self['dns']['aliases'] += self['static']['domains'].keys + self['dns']['aliases'].uniq! +end
\ No newline at end of file |