()
| 79 | } |
| 80 | |
| 81 | func (u *RedisService) InstallCli() error { |
| 82 | item := dto.ContainerOperate{ |
| 83 | Name: "1Panel-redis-cli-tools", |
| 84 | Image: "redis:7.4.4", |
| 85 | Networks: []dto.ContainerNetwork{{Network: "1panel-network"}}, |
| 86 | } |
| 87 | return NewIContainerService().ContainerCreate(item, false) |
| 88 | } |
| 89 | |
| 90 | func (u *RedisService) ChangePassword(req dto.ChangeRedisPass) error { |
| 91 | if err := updateInstallInfoInDB("redis", req.Database, "password", req.Value); err != nil { |
nothing calls this directly
no test coverage detected