1
1

Improve output.

This commit is contained in:
Derek Smith 2023-03-24 17:10:04 -04:00
parent dc40e732ee
commit f823ba361e
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
2 changed files with 3 additions and 5 deletions

View File

@ -10,7 +10,7 @@ if lxc remote get-default | grep -q "local"; then
exit 1 exit 1
fi fi
echo "WARNING: This will DESTROY any existing VMs! Use the --purge flag to delete ALL Sovereign Stack LXD resources." echo "WARNING: This will DESTROY any existing VMs!"
RESPONSE= RESPONSE=
read -r -p "Are you sure you want to continue (y/n): ": RESPONSE read -r -p "Are you sure you want to continue (y/n): ": RESPONSE

View File

@ -26,14 +26,13 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
echo echo
echo echo
echo "Project: $PROJECT_NAME" echo "Project: $PROJECT_NAME"
echo "----------------------" echo "----------------------------------------------------------"
if ! lxc info | grep "project:" | grep -q "$PROJECT_NAME"; then if ! lxc info | grep "project:" | grep -q "$PROJECT_NAME"; then
if lxc project list | grep -q "$PROJECT_NAME"; then if lxc project list | grep -q "$PROJECT_NAME"; then
lxc project switch "$PROJECT_NAME" lxc project switch "$PROJECT_NAME"
fi fi
fi fi
echo
echo " Networks:" echo " Networks:"
lxc network list lxc network list
echo echo
@ -42,6 +41,5 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
echo echo
echo " Instances (VMs):" echo " Instances (VMs):"
lxc list lxc list
echo echo "----------------------------------------------------------"
done done