mirror of https://github.com/Aidaho12/haproxy-wi
				
				
				
			v3.9.4
							parent
							
								
									0072b1babf
								
							
						
					
					
						commit
						4f90857e21
					
				|  | @ -459,7 +459,7 @@ def update_db_v_3_8_1(**kwargs): | ||||||
| 	 | 	 | ||||||
| def update_ver(**kwargs): | def update_ver(**kwargs): | ||||||
| 	con, cur = get_cur() | 	con, cur = get_cur() | ||||||
| 	sql = """update version set version = '3.9.3'; """ | 	sql = """update version set version = '3.9.4'; """ | ||||||
| 	try:     | 	try:     | ||||||
| 		cur.execute(sql) | 		cur.execute(sql) | ||||||
| 		con.commit() | 		con.commit() | ||||||
|  |  | ||||||
|  | @ -651,7 +651,6 @@ def ssh_command(serv, commands, **kwargs): | ||||||
| 	try:	 | 	try:	 | ||||||
| 		ssh.close() | 		ssh.close() | ||||||
| 	except: | 	except: | ||||||
| 		print("<div class='alert alert-danger' style='margin: 0;'>"+str(ssh)+"<a title='Close' id='errorMess'><b>X</b></a></div>") |  | ||||||
| 		logging('localhost', ' '+str(ssh), haproxywi=1) | 		logging('localhost', ' '+str(ssh), haproxywi=1) | ||||||
| 		pass | 		pass | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -20,6 +20,7 @@ try: | ||||||
| 	users = sql.select_users() | 	users = sql.select_users() | ||||||
| 	groups = sql.select_groups() | 	groups = sql.select_groups() | ||||||
| 	token = sql.get_token(user_id.value) | 	token = sql.get_token(user_id.value) | ||||||
|  | 	role = sql.get_user_role_by_uuid(user_id.value) | ||||||
| 	cmd = "ps ax |grep checker_mas |grep -v grep |wc -l" | 	cmd = "ps ax |grep checker_mas |grep -v grep |wc -l" | ||||||
| 	checker_master, stderr = funct.subprocess_execute(cmd) | 	checker_master, stderr = funct.subprocess_execute(cmd) | ||||||
| 	cmd = "ps ax |grep checker_worker |grep -v grep |wc -l" | 	cmd = "ps ax |grep checker_worker |grep -v grep |wc -l" | ||||||
|  | @ -39,7 +40,7 @@ except: | ||||||
| template = template.render(h2 = 1, | template = template.render(h2 = 1, | ||||||
| 							autorefresh = 1, | 							autorefresh = 1, | ||||||
| 							title = "Overview", | 							title = "Overview", | ||||||
| 							role = sql.get_user_role_by_uuid(user_id.value), | 							role = role, | ||||||
| 							user = user, | 							user = user, | ||||||
| 							users = users, | 							users = users, | ||||||
| 							groups = groups, | 							groups = groups, | ||||||
|  |  | ||||||
|  | @ -70,10 +70,14 @@ | ||||||
| 				{% endif %}				  | 				{% endif %}				  | ||||||
| 				<br /> | 				<br /> | ||||||
| 				<span title="Date of last edit config"> | 				<span title="Date of last edit config"> | ||||||
| 					{% if "ls: cannot access" in s.7 %} | 					{% if s.7 != None %} | ||||||
| 						Cannot find HAProxy config | 						{% if "ls: cannot access" in s.7 %} | ||||||
|  | 							Cannot find HAProxy config | ||||||
|  | 						{% else %} | ||||||
|  | 							Last edit: {{s.7}} | ||||||
|  | 						{% endif %} | ||||||
| 					{% else %} | 					{% else %} | ||||||
| 						Last edit: {{s.7}} | 						Cannot connect to HAProxy server | ||||||
| 					{% endif %} | 					{% endif %} | ||||||
| 				</span>			 | 				</span>			 | ||||||
| 				<br /> | 				<br /> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	 Pavel Loginov
						Pavel Loginov