We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 902ad2b commit 1099a80Copy full SHA for 1099a80
install.lxd.sh
@@ -1,9 +1,12 @@
1
#!/bin/bash
2
3
-# add LXD PPA repository
4
-sudo apt-get install -y software-properties-common
5
-sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
6
-sudo apt-get update
+RELEASE=$(lsb_release -rs | tr -d ".")
+if [ ${RELEASE} -lt 1804 ]; then
+ # add LXD PPA repository
+ sudo apt-get install -y software-properties-common
7
+ sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
8
+ sudo apt-get update
9
+fi
10
11
# install LXD
12
sudo apt-get install -y lxd
0 commit comments