|
|
@ -186,17 +186,18 @@ func createLink(ctx context.Context, app model.App, appInstall *model.AppInstall
|
|
|
|
}
|
|
|
|
}
|
|
|
|
case constant.AppRedis:
|
|
|
|
case constant.AppRedis:
|
|
|
|
if password, ok := params["PANEL_REDIS_ROOT_PASSWORD"]; ok {
|
|
|
|
if password, ok := params["PANEL_REDIS_ROOT_PASSWORD"]; ok {
|
|
|
|
|
|
|
|
authParam := dto.RedisAuthParam{
|
|
|
|
|
|
|
|
RootPassword: "",
|
|
|
|
|
|
|
|
}
|
|
|
|
if password != "" {
|
|
|
|
if password != "" {
|
|
|
|
authParam := dto.RedisAuthParam{
|
|
|
|
authParam.RootPassword = password.(string)
|
|
|
|
RootPassword: password.(string),
|
|
|
|
database.Password = password.(string)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
authByte, err := json.Marshal(authParam)
|
|
|
|
authByte, err := json.Marshal(authParam)
|
|
|
|
if err != nil {
|
|
|
|
if err != nil {
|
|
|
|
return err
|
|
|
|
return err
|
|
|
|
}
|
|
|
|
|
|
|
|
appInstall.Param = string(authByte)
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
database.Password = password.(string)
|
|
|
|
appInstall.Param = string(authByte)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if err := databaseRepo.Create(ctx, database); err != nil {
|
|
|
|
if err := databaseRepo.Create(ctx, database); err != nil {
|
|
|
|