mirror of
				https://github.com/ShaYmez/ezservermonitor-web.git
				synced 2025-10-27 11:00:23 -04:00 
			
		
		
		
	Fix distro name for some more platforms (e.g. Raspbian).
This commit is contained in:
		
							parent
							
								
									d868a423ed
								
							
						
					
					
						commit
						b28e0b0275
					
				| @ -7,21 +7,9 @@ $hostname = php_uname('n'); | |||||||
| // OS
 | // OS
 | ||||||
| if (!($os = shell_exec('/usr/bin/lsb_release -ds'))) | if (!($os = shell_exec('/usr/bin/lsb_release -ds'))) | ||||||
| { | { | ||||||
|     if (!($os = shell_exec('cat /etc/fedora-release'))) |     if (!($os = shell_exec('find /etc/*-release -type f -exec cat {} \; | grep NAME | tail -n 1 | cut -d= -f2 | tr -d \'"\''))) | ||||||
|     { |     { | ||||||
|         if (!($os = shell_exec('cat /etc/redhat-release'))) |         $os = 'N.A'; | ||||||
|         { |  | ||||||
|             if (!($os = shell_exec('cat /etc/mandriva-release'))) |  | ||||||
|             { |  | ||||||
|                 if (!($os = shell_exec('cat /etc/SuSE-release'))) |  | ||||||
|                 { |  | ||||||
|                     if (!($os = shell_exec('cat /etc/centos-release'))) |  | ||||||
|                     { |  | ||||||
|                         $os = 'N.A'; |  | ||||||
|                     } |  | ||||||
|                 } |  | ||||||
|             } |  | ||||||
|         } |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user