Update output when booting

This commit is contained in:
Dane Everitt
2020-04-17 14:32:09 -07:00
parent 4279fa510e
commit 9e0cacc076
2 changed files with 12 additions and 2 deletions

View File

@@ -237,6 +237,11 @@ func GetJwtAlgorithm() *jwt.HMACSHA {
return _jwtAlgo
}
// Returns the path for this configuration file.
func (c *Configuration) GetPath() string {
return c.path
}
// Ensures that the Pterodactyl core user exists on the system. This user will be the
// owner of all data in the root data directory and is used as the user within containers.
//
@@ -376,7 +381,7 @@ func (c *Configuration) WriteToDisk() error {
c.writeLock.Lock()
defer c.writeLock.Unlock()
if err := ioutil.WriteFile(c.path, b, 0644); err != nil {
if err := ioutil.WriteFile(c.GetPath(), b, 0644); err != nil {
return err
}