1
1

Compare commits

...

2 Commits

Author SHA1 Message Date
efac5e4f45
Create weekly basse images. 2023-03-24 17:10:43 -04:00
f823ba361e
Improve output. 2023-03-24 17:10:04 -04:00
3 changed files with 7 additions and 7 deletions

View File

@ -87,8 +87,10 @@ export LXD_CONFIG_PATH="$SS_ROOT_PATH/lxd"
export LXD_UBUNTU_BASE_VERSION="jammy" export LXD_UBUNTU_BASE_VERSION="jammy"
export BASE_IMAGE_VM_NAME="ss-base-${LXD_UBUNTU_BASE_VERSION//./-}" export BASE_IMAGE_VM_NAME="ss-base-${LXD_UBUNTU_BASE_VERSION//./-}"
export BASE_LXC_IMAGE="ubuntu/$LXD_UBUNTU_BASE_VERSION/cloud" export BASE_LXC_IMAGE="ubuntu/$LXD_UBUNTU_BASE_VERSION/cloud"
export UBUNTU_BASE_IMAGE_NAME="ss-ubuntu-${LXD_UBUNTU_BASE_VERSION//./-}" WEEK_NUMBER=$(date +%U)
export DOCKER_BASE_IMAGE_NAME="ss-docker-${LXD_UBUNTU_BASE_VERSION//./-}" export UBUNTU_BASE_IMAGE_NAME="ss-ubuntu-${LXD_UBUNTU_BASE_VERSION//./-}-$WEEK_NUMBER"
export DOCKER_BASE_IMAGE_NAME="ss-docker-${LXD_UBUNTU_BASE_VERSION//./-}-$WEEK_NUMBER"
export OTHER_SITES_LIST= export OTHER_SITES_LIST=
export BTCPAY_ALT_NAMES= export BTCPAY_ALT_NAMES=

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