fix: 解决 ftp 创建用户失败的问题 (#5751)
Some checks failed
Build Test / build-linux-binary (push) Failing after -6m24s
Build / SonarCloud (push) Failing after -6m26s
sync2gitee / repo-sync (push) Failing after -6m27s

This commit is contained in:
ssongliu 2024-07-10 18:39:24 +08:00 committed by GitHub
parent 0ccfeed10d
commit b1ec7d9f04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -60,7 +60,7 @@ func NewFtpClient() (*Ftp, error) {
if err != nil { if err != nil {
return nil, errors.New(string(stdout)) return nil, errors.New(string(stdout))
} }
stdout2, err := cmd.Execf("useradd -u 1000 -g 1panel %s", userItem.Username) stdout2, err := cmd.Exec("useradd -u 1000 -g 1panel 1panel")
if err != nil { if err != nil {
return nil, errors.New(stdout2) return nil, errors.New(stdout2)
} }