X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=installers%2Ffull_install_osm.sh;h=d2f5e5248210625f3d50f22794731a772875bd1a;hb=e38e8b15aee8668b14530152a3683e8f1cb79a86;hp=58958c9ef0a2a9ccc5ba3da6d9e1d3ce5d63a87e;hpb=56005546aea76a7998e568ec5f50f9f1ec20eb8d;p=osm%2Fdevops.git diff --git a/installers/full_install_osm.sh b/installers/full_install_osm.sh index 58958c9e..d2f5e524 100755 --- a/installers/full_install_osm.sh +++ b/installers/full_install_osm.sh @@ -162,7 +162,12 @@ function install_lxd() { # Install LXD snap sudo apt-get remove --purge -y liblxc1 lxc-common lxcfs lxd lxd-client - sudo snap install lxd --channel $LXD_VERSION/stable + snap info lxd | grep installed > /dev/null + if [ $? -eq 0 ]; then + sudo snap refresh lxd --channel $LXD_VERSION/stable + else + sudo snap install lxd --channel $LXD_VERSION/stable + fi # Configure LXD sudo usermod -a -G lxd `whoami` @@ -871,7 +876,7 @@ function ctrl_c() { [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -LXD_VERSION=4.0 +LXD_VERSION=5.0 JUJU_VERSION=2.9 JUJU_AGENT_VERSION=2.9.29 UNINSTALL=""