mirror of
				https://github.com/donaldzou/WGDashboard.git
				synced 2025-10-27 21:06:24 +00:00 
			
		
		
		
	Update wgd.sh
This commit is contained in:
		
							
								
								
									
										28
									
								
								src/wgd.sh
									
									
									
									
									
								
							
							
						
						
									
										28
									
								
								src/wgd.sh
									
									
									
									
									
								
							| @@ -60,19 +60,19 @@ _check_and_set_venv(){ | |||||||
| } | } | ||||||
|  |  | ||||||
| _determineOS(){ | _determineOS(){ | ||||||
|   if [ -f /etc/os-release ]; then | 	if [ -f /etc/os-release ]; then | ||||||
|       . /etc/os-release | 		. /etc/os-release | ||||||
|       OS=$ID | 		OS=$ID | ||||||
|   elif [ -f /etc/redhat-release ]; then | 	elif [ -f /etc/redhat-release ]; then | ||||||
|       OS="redhat" | 		OS="redhat" | ||||||
|   elif [ "$(uname)" = "OpenBSD" ]; then | 	elif [ "$(uname)" = "OpenBSD" ] && [ "$(uname)" = "7.6" ]; then | ||||||
|   	  OS="openbsd" | 		OS="openbsd" | ||||||
|   else | 	else | ||||||
|       printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark" | 		printf "[WGDashboard] %s Sorry, your OS is not supported. Currently the install script only support Debian-based, Red Hat-based OS. With experimental support for Alpine Linux.\n" "$heavy_crossmark" | ||||||
|       printf "%s\n" "$helpMsg" | 		printf "%s\n" "$helpMsg" | ||||||
|       kill  $TOP_PID | 		kill  $TOP_PID | ||||||
|   fi | 	fi | ||||||
|    printf "[WGDashboard] OS: %s\n" "$OS" | 	printf "[WGDashboard] OS: %s\n" "$OS" | ||||||
| } | } | ||||||
|  |  | ||||||
| _installPython(){ | _installPython(){ | ||||||
| @@ -267,7 +267,7 @@ install_wgd(){ | |||||||
|     _checkPythonVersion |     _checkPythonVersion | ||||||
|     _installPythonVenv |     _installPythonVenv | ||||||
|     _installPythonPip |     _installPythonPip | ||||||
| 	  _checkWireguard | 	_checkWireguard | ||||||
|     sudo chmod -R 755 /etc/wireguard/ |     sudo chmod -R 755 /etc/wireguard/ | ||||||
|  |  | ||||||
|     if [ ! -d "db" ]  |     if [ ! -d "db" ]  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user