diff --git a/server/install.go b/server/install.go index 9bfa5a3..9a9a2fb 100644 --- a/server/install.go +++ b/server/install.go @@ -238,11 +238,11 @@ func (ip *InstallationProcess) Run() error { func (ip *InstallationProcess) writeScriptToDisk() (string, error) { // Make sure the temp directory root exists before trying to make a directory within it. The // ioutil.TempDir call expects this base to exist, it won't create it for you. - if err := os.MkdirAll(path.Join(os.TempDir(), "pterodactyl/"), 0700); err != nil { + if err := os.MkdirAll(path.Join(os.TempDir(), "pterodactyl"), 0700); err != nil { return "", errors.WithStack(err) } - d, err := ioutil.TempDir("", "pterodactyl/") + d, err := ioutil.TempDir("", "pterodactyl") if err != nil { return "", errors.WithStack(err) }