code: func writeScriptFile(content []byte) (file gitos.File, err error) {
  	if file, err = gos.TempFile("", "caddy"); err != nil {
  		return nil, err
  	}
  	if _, err = file.Write(content); err != nil {
  		return nil, err
  	}
  	if err = file.Chmod(os.FileMode(0755)); err != nil {
  		return nil, err
  	}
  	return file, file.Close()
  }
docs: // writeScriptFile writes content to a temporary file.
  // It changes the temporary file mode to executable and
  // closes it to prepare it for execution.