Let default aptly dir be inside home directory.

This commit is contained in:
Andrey Smirnov
2014-01-04 13:07:19 +04:00
parent 040b468e10
commit 3f82edf5d6
+2 -1
View File
@@ -3,6 +3,7 @@ package utils
import (
"encoding/json"
"os"
"path/filepath"
)
// ConfigStructure is structure of main configuration
@@ -13,7 +14,7 @@ type ConfigStructure struct {
// Config is configuration for aptly, shared by all modules
var Config = ConfigStructure{
RootDir: "/var/aptly",
RootDir: filepath.Join(os.Getenv("HOME"), ".aptly"),
DownloadConcurrency: 4,
}