mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-02-07 17:10:07 +08:00
parent
3ec208dc85
commit
cc7981229c
@ -186,9 +186,12 @@ 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 {
|
||||||
if password != "" {
|
|
||||||
authParam := dto.RedisAuthParam{
|
authParam := dto.RedisAuthParam{
|
||||||
RootPassword: password.(string),
|
RootPassword: "",
|
||||||
|
}
|
||||||
|
if password != "" {
|
||||||
|
authParam.RootPassword = password.(string)
|
||||||
|
database.Password = password.(string)
|
||||||
}
|
}
|
||||||
authByte, err := json.Marshal(authParam)
|
authByte, err := json.Marshal(authParam)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -196,8 +199,6 @@ func createLink(ctx context.Context, app model.App, appInstall *model.AppInstall
|
|||||||
}
|
}
|
||||||
appInstall.Param = string(authByte)
|
appInstall.Param = string(authByte)
|
||||||
}
|
}
|
||||||
database.Password = password.(string)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if err := databaseRepo.Create(ctx, database); err != nil {
|
if err := databaseRepo.Create(ctx, database); err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
x
Reference in New Issue
Block a user