- FileOwnership option to Ownership
- FilePermissions option to Permissions
This commit is contained in:
Quentin McGaw (desktop)
2020-02-08 15:29:27 +00:00
parent 1f873e7d66
commit 6620ba52d2
8 changed files with 18 additions and 16 deletions

View File

@@ -14,8 +14,8 @@ func (c *configurator) MakeConf(logLevel models.TinyProxyLogLevel, port uint16,
lines := generateConf(logLevel, port, user, password)
return c.fileManager.WriteLinesToFile(string(constants.TinyProxyConf),
lines,
files.FileOwnership(uid, gid),
files.FilePermissions(0400))
files.Ownership(uid, gid),
files.Permissions(0400))
}
func generateConf(logLevel models.TinyProxyLogLevel, port uint16, user, password string) (lines []string) {