From 7ba91f8bcb12be6d039cf2bd01075c745f3a44dc Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Thu, 9 Mar 2023 15:36:30 -0500 Subject: [PATCH] Various updates. --- deployment/.gitignore | 1 + deployment/checkout_old.sh | 5 ----- deployment/reset.sh | 24 +----------------------- deployment/show.sh | 5 ++++- 4 files changed, 6 insertions(+), 29 deletions(-) create mode 100644 deployment/.gitignore delete mode 100644 deployment/checkout_old.sh diff --git a/deployment/.gitignore b/deployment/.gitignore new file mode 100644 index 0000000..e3f094e --- /dev/null +++ b/deployment/.gitignore @@ -0,0 +1 @@ +project \ No newline at end of file diff --git a/deployment/checkout_old.sh b/deployment/checkout_old.sh deleted file mode 100644 index 4f06359..0000000 --- a/deployment/checkout_old.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash - - - -# purpose of script is to switch the ./project repo to the git commit as \ No newline at end of file diff --git a/deployment/reset.sh b/deployment/reset.sh index c19e670..83bea2b 100755 --- a/deployment/reset.sh +++ b/deployment/reset.sh @@ -52,26 +52,4 @@ CURRENT_REMOTE="$(lxc remote get-default)" if ! lxc remote get-default | grep -q "local"; then lxc remote switch local lxc remote remove "$CURRENT_REMOTE" -fi - - - - - -# if lxc image list | grep -q "$UBUNTU_BASE_IMAGE_NAME"; then -# lxc image delete "$UBUNTU_BASE_IMAGE_NAME" -# fi - - -# if snap list | grep -q lxd; then -# sudo snap remove lxd -# sleep 2 -# fi - -# if zfs list | grep -q sovereign-stack; then -# sudo zfs destroy -r sovereign-stack -# fi - -# if zfs list | grep -q "sovereign-stack"; then -# sudo zfs destroy -r "rpool/lxd" -# fi +fi \ No newline at end of file diff --git a/deployment/show.sh b/deployment/show.sh index 0edce6d..f0ec5f8 100755 --- a/deployment/show.sh +++ b/deployment/show.sh @@ -1,6 +1,9 @@ #!/bin/bash -lxc remote list +echo "LXD REMOTE: $(lxc remote get-default)" + +lxc project list + lxc storage list lxc image list lxc project list