#!/bin/sh if [ "$(id -u)" -ne 0 ]; then echo "This script should be run as root. Aborting..." > /dev/stderr exit 1 fi echo "Updating apt package index..." apt-get update > /dev/null echo "Installing snapd..." apt-get -q -y -o Dpkg::Use-Pty=0 install \ snapd echo "Installing core..." snap install core echo "Installing microk8s..." snap install microk8s --classic