From 37fbae0fcde322a8f1937a9a5adb49d373925d3f Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 23 Aug 2020 14:18:59 -0700 Subject: [PATCH] closes #2241 --- server/install.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) }