1
0
Fork 0
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:
Eggbertx 2025-07-11 14:58:45 -07:00
parent 1a3877c807
commit 564d659e02
4 changed files with 89 additions and 64 deletions

View file

@ -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)