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

fix: tests

This commit is contained in:
耗子
2023-07-11 01:40:27 +08:00
parent 8b31415f5c
commit 98c4764b95

View File

@@ -97,7 +97,7 @@ func Chmod(path string, permission os.FileMode) bool {
// Chown 修改路径所有者
func Chown(path, user, group string) bool {
cmd := exec.Command("chown", "-R", user+":"+group, path)
cmd := exec.Command("sudo chown", "-R", user+":"+group, path)
err := cmd.Run()
if err != nil {