mirror of
				https://github.com/datahub-project/datahub.git
				synced 2025-10-31 10:49:00 +00:00 
			
		
		
		
	
		
			
	
	
		
			23 lines
		
	
	
		
			595 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
		
		
			
		
	
	
			23 lines
		
	
	
		
			595 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
|   | #!/bin/bash
 | ||
|  | 
 | ||
|  | UBUNTU_VERSION=$(grep VERSION_ID /etc/os-release | cut -d '"' -f 2) | ||
|  | 
 | ||
|  | 
 | ||
|  | if ! [[ "20.04 22.04 24.04 24.10" == *"$UBUNTU_VERSION"* ]]; | ||
|  | then | ||
|  |     echo "Ubuntu $UBUNTU_VERSION is not currently supported."; | ||
|  |     exit; | ||
|  | fi | ||
|  | 
 | ||
|  | sudo su | ||
|  | 
 | ||
|  | # Download the package to configure the Microsoft repo | ||
|  | curl -sSL -O https://packages.microsoft.com/config/ubuntu/$UBUNTU_VERSION/packages-microsoft-prod.deb | ||
|  | # Install the package | ||
|  | sudo dpkg -i packages-microsoft-prod.deb | ||
|  | # Delete the file | ||
|  | rm packages-microsoft-prod.deb | ||
|  | 
 | ||
|  | # Install the driver | ||
|  | sudo apt-get update | ||
|  | sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 |