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