mirror of
https://github.com/Eggbertx/gochan.git
synced 2025-08-19 12:36:23 -07:00
Don't create /etc/gochan or /var/log/gochan during vagrant provisioning, since gochan-install will do that
This commit is contained in:
parent
1a3877c807
commit
564d659e02
4 changed files with 89 additions and 64 deletions
|
@ -31,10 +31,10 @@ const (
|
|||
)
|
||||
|
||||
var (
|
||||
uid int
|
||||
gid int
|
||||
|
||||
initialSetupStatus InitialSetupStatus = InitialSetupStatusUnknown
|
||||
uid int
|
||||
gid int
|
||||
ErrGochanConfigNotFound = errors.New("gochan.json not found")
|
||||
initialSetupStatus InitialSetupStatus = InitialSetupStatusUnknown
|
||||
)
|
||||
|
||||
// MissingField represents a field missing from the configuration file
|
||||
|
@ -143,7 +143,7 @@ func loadConfig() (err error) {
|
|||
}
|
||||
cfgPath = gcutil.FindResource(StandardConfigSearchPaths...)
|
||||
if cfgPath == "" {
|
||||
return errors.New("gochan.json not found")
|
||||
return ErrGochanConfigNotFound
|
||||
}
|
||||
|
||||
cfgBytes, err := os.ReadFile(cfgPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue