(website model.Website)
| 1209 | } |
| 1210 | |
| 1211 | func checkIsLinkApp(website model.Website) bool { |
| 1212 | if website.Type == constant.Deployment { |
| 1213 | return true |
| 1214 | } |
| 1215 | if website.Type == constant.Runtime { |
| 1216 | runtime, _ := runtimeRepo.GetFirst(context.Background(), repo.WithByID(website.RuntimeID)) |
| 1217 | return runtime.Resource == constant.ResourceAppstore |
| 1218 | } |
| 1219 | return false |
| 1220 | } |
| 1221 | |
| 1222 | func chownRootDir(path string) error { |
| 1223 | cmdMgr := cmd.NewCommandMgr(cmd.WithTimeout(1 * time.Second)) |
no test coverage detected