diff --git a/manage.sh b/manage.sh index f04416a..990fb99 100755 --- a/manage.sh +++ b/manage.sh @@ -1,8 +1,16 @@ #!/bin/bash +# https://www.sovereign-stack.org/ss-manage/ + set -eu cd "$(dirname "$0")" +# check to ensure dependencies are met. +if ! command -v lxc >/dev/null 2>&1; then + echo "This script requires 'lxd/lxc' to be installed. Please run 'install.sh'." + exit 1 +fi + if ! lxc remote get-default | grep -q "local"; then lxc remote switch "local" fi