mirror of
				https://github.com/1Panel-dev/1Panel.git
				synced 2025-10-31 11:15:58 +08:00 
			
		
		
		
	
							parent
							
								
									3ec208dc85
								
							
						
					
					
						commit
						cc7981229c
					
				
					 1 changed files with 11 additions and 10 deletions
				
			
		|  | @ -186,17 +186,18 @@ 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), | ||||
| 					} | ||||
| 					authByte, err := json.Marshal(authParam) | ||||
| 					if err != nil { | ||||
| 						return err | ||||
| 					} | ||||
| 					appInstall.Param = string(authByte) | ||||
| 				authParam := dto.RedisAuthParam{ | ||||
| 					RootPassword: "", | ||||
| 				} | ||||
| 				database.Password = password.(string) | ||||
| 				if password != "" { | ||||
| 					authParam.RootPassword = password.(string) | ||||
| 					database.Password = password.(string) | ||||
| 				} | ||||
| 				authByte, err := json.Marshal(authParam) | ||||
| 				if err != nil { | ||||
| 					return err | ||||
| 				} | ||||
| 				appInstall.Param = string(authByte) | ||||
| 			} | ||||
| 		} | ||||
| 		if err := databaseRepo.Create(ctx, database); err != nil { | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue