mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Move `lxd` (Ansible-based) to `lxd-ansible`. Restore `lxd` from earlier commit as `lxd-shell`.
17 lines
413 B
Bash
Executable file
17 lines
413 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# Initial housekeepting
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
# Add the PPA repository for LXD/LXC stable
|
|
if [[ ! -e /etc/apt/sources.list.d/ubuntu-lxc-lxd-stable-trusty.list ]]; then
|
|
sudo add-apt-repository -y ppa:ubuntu-lxc/lxd-stable
|
|
fi
|
|
|
|
# Update package list
|
|
sudo apt-get update
|
|
|
|
# Install LXC/LXD if not already installed
|
|
if [[ ! -e /usr/bin/lxd ]]; then
|
|
sudo apt-get -y install lxd
|
|
fi
|