server: make ImageStore configurable

It's a bit odd to have ImageStore be part of the config and yet we don't
allow people to modify it. However, leave it out of the commented
version because it's currently unused.

Signed-off-by: Aleksa Sarai <asarai@suse.de>
This commit is contained in:
Aleksa Sarai 2016-10-21 20:50:49 +11:00 committed by Aleksa Sarai
parent cb7239caa6
commit 33f47d6a6b
No known key found for this signature in database
GPG key ID: 9E18AA267DDB8DB4
4 changed files with 11 additions and 6 deletions

View file

@ -217,7 +217,7 @@ func New(config *Config) (*Server, error) {
utils.StartReaper()
if err := os.MkdirAll(config.ImageStore, 0755); err != nil {
if err := os.MkdirAll(config.ImageDir, 0755); err != nil {
return nil, err
}