2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 16:10:59 +08:00

fix: lint

This commit is contained in:
耗子
2023-08-04 02:38:44 +08:00
parent bc179923a0
commit 08e14a84a5

View File

@@ -204,7 +204,7 @@ func (c *PureFtpdController) Add(ctx http.Context) {
return
}
tools.Chmod(path, 755)
tools.Chmod(path, 0755)
tools.Chown(path, "www", "www")
tools.ExecShell(`yes '` + password + `' | pure-pw useradd ` + username + ` -u www -g www -d ` + path)
tools.ExecShell("pure-pw mkdb")