Improve output.
This commit is contained in:
parent
dc40e732ee
commit
f823ba361e
@ -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
|
||||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user