1
1
sovereign-stack/reset.sh

34 lines
677 B
Bash
Raw Normal View History

2022-07-27 16:38:33 +00:00
#!/bin/bash
set -x
2022-08-19 21:50:41 +00:00
CLUSTER_NAME=""
SSH_ENDPOINT_HOSTNAME=""
SSH_ENDPOINT_DOMAIN_NAME=""
TEST_DOMAIN=""
export LXD_VM_NAME="${TEST_DOMAIN//./-}"
2022-07-27 16:38:33 +00:00
lxc delete --force www-"$LXD_VM_NAME"
lxc delete --force btcpay-"$LXD_VM_NAME"
lxc delete --force sovereign-stack
2022-08-19 21:50:41 +00:00
lxc delete --force sovereign-stack-base
2022-07-27 16:38:33 +00:00
lxc profile delete www-"$LXD_VM_NAME"
lxc profile delete btcpay-"$LXD_VM_NAME"
lxc profile delete sovereign-stack
lxc image rm sovereign-stack-base
lxc image rm ubuntu-base
lxc storage delete sovereign-stack
lxc remote switch "local"
lxc remote remove "$CLUSTER_NAME"
source "$HOME/.bashrc"
./cluster.sh create "$CLUSTER_NAME" "$SSH_ENDPOINT.$DOMAIN_NAME"
./deploy.sh