refactor: changed where index.html is created
This commit is contained in:
parent
23d43061fb
commit
224df9ef7a
2 changed files with 2 additions and 2 deletions
|
|
@ -5,7 +5,7 @@ const (
|
|||
RELPATH_PROFILES = "/profiles"
|
||||
RELPATH_DATA = "/data"
|
||||
RELPATH_METADATA = "/.makeshift"
|
||||
RELPATH_HELP = RELPATH_DATA + "/index.html"
|
||||
RELPATH_HELP = RELPATH_DATA + "/www/index.html"
|
||||
RELPATH_PROFILE = RELPATH_PROFILES + "/default.json"
|
||||
|
||||
PATH_CONFIG = "$HOME/.config/makeshift/config.yaml"
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ func (s *Service) Init() error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("failed to make service profile path: %v", err)
|
||||
}
|
||||
err = os.MkdirAll(s.PathForData(), 0o777)
|
||||
err = os.MkdirAll(s.PathForData()+"/www", 0o777)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to make service data path: %v", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue