Documentation ¶ Index ¶ func WriteFile(r runner.Runner, path string, data []byte, perm os.FileMode) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func WriteFile ¶ func WriteFile(r runner.Runner, path string, data []byte, perm os.FileMode) error WriteFile writes data to path via a temp file + sudo install. This avoids needing root to create the temp file while still installing the final file with correct ownership (root) and permissions. Types ¶ This section is empty. Source Files ¶ View all Source files sudo.go Click to show internal directories. Click to hide internal directories.