Mindor updates.
This commit is contained in:
parent
d35a882d8b
commit
dc269fe29c
@ -23,14 +23,25 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
|
||||
BITCOIN_CHAIN=$(echo "$NO_PARENS" | cut -d'|' -f2)
|
||||
PROJECT_NAME="$PROJECT_PREFIX-$BITCOIN_CHAIN"
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Project: $PROJECT_NAME"
|
||||
echo "----------------------"
|
||||
if ! lxc info | grep "project:" | grep -q "$PROJECT_NAME"; then
|
||||
if lxc project list | grep -q "$PROJECT_NAME"; then
|
||||
lxc project switch "$PROJECT_NAME"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo
|
||||
echo " Networks:"
|
||||
lxc network list
|
||||
echo
|
||||
echo " Profiles:"
|
||||
lxc profile list
|
||||
echo
|
||||
echo " Instances (VMs):"
|
||||
lxc list
|
||||
echo
|
||||
|
||||
done
|
@ -79,13 +79,9 @@ if ! lxc image list | grep -q "$UBUNTU_BASE_IMAGE_NAME"; then
|
||||
lxc image import "$METADATA_FILE" "$IMAGE_FILE" --alias "$UBUNTU_BASE_IMAGE_NAME"
|
||||
else
|
||||
lxc image copy "images:$BASE_LXC_IMAGE" local: --alias "$UBUNTU_BASE_IMAGE_NAME" --vm --auto-update
|
||||
fi
|
||||
fi
|
||||
|
||||
# export the image if it's not cached.
|
||||
if [ ! -d "$SS_JAMMY_PATH" ]; then
|
||||
mkdir "$SS_JAMMY_PATH"
|
||||
mkdir -p "$SS_JAMMY_PATH"
|
||||
lxc image export "$UBUNTU_BASE_IMAGE_NAME" "$SS_JAMMY_PATH" --vm
|
||||
fi
|
||||
fi
|
||||
|
||||
# if the ss-mgmt doesn't exist, create it.
|
||||
|
Loading…
Reference in New Issue
Block a user