This commit is contained in:
Dane Everitt 2020-08-23 14:18:59 -07:00
parent ebc0e82772
commit 37fbae0fcd
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53

View File

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