echo "Installing juju"
sudo snap install juju --classic
sudo dpkg-reconfigure -p medium lxd
- sg lxd -c "juju bootstrap localhost osm"
+ sg lxd -c "juju bootstrap --bootstrap-series=xenial localhost osm"
[ $(juju status |grep "osm" |wc -l) -eq 1 ] || FATAL "Juju installation failed"
echo "Finished installation of juju"
}
}
function install_lightweight() {
+ [ "$USER" == "root" ] && FATAL "You are running the installer as root. The installer is prepared to be executed as a normal user with sudo privileges."
echo "Installing lightweight build of OSM"
LWTEMPDIR="$(mktemp -d -q --tmpdir "installosmlight.XXXXXX")"
trap 'rm -rf "${LWTEMPDIR}"' EXIT