Make volumes project-specific.
This commit is contained in:
parent
cae11df6a5
commit
0f65419d55
@ -48,10 +48,10 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
|
||||
# create the lxc project as specified by PROJECT_NAME
|
||||
if ! lxc project list | grep -q "$PROJECT_NAME"; then
|
||||
lxc project create "$PROJECT_NAME"
|
||||
lxc project set "$PROJECT_NAME" features.networks=true features.images=false features.storage.volumes=false
|
||||
lxc project set "$PROJECT_NAME" features.networks=true features.images=false features.storage.volumes=true
|
||||
lxc project switch "$PROJECT_NAME"
|
||||
fi
|
||||
|
||||
|
||||
# default values are already at regtest mode.
|
||||
if [ "$BITCOIN_CHAIN" = testnet ]; then
|
||||
|
||||
|
@ -11,27 +11,32 @@ echo "Global Settings:"
|
||||
|
||||
lxc image list
|
||||
lxc storage list
|
||||
lxc storage volume list ss-base
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
|
||||
export PROJECT_NAME="$(lxc info | grep "project:" | awk '{print $2}')"
|
||||
PROJECT_NAME="$(lxc info | grep "project:" | awk '{print $2}')"
|
||||
export export="$PROJECT_NAME"
|
||||
export PROJECT_PATH="$PROJECTS_PATH/$PROJECT_NAME"
|
||||
|
||||
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "Project: $PROJECT_NAME"
|
||||
echo "Active project: $PROJECT_NAME"
|
||||
echo "----------------------------------------------------------"
|
||||
|
||||
echo " Networks:"
|
||||
lxc network list
|
||||
|
||||
echo
|
||||
echo " Storage Volumes:"
|
||||
lxc storage volume list ss-base
|
||||
|
||||
echo
|
||||
echo " Profiles:"
|
||||
lxc profile list
|
||||
|
||||
|
||||
echo
|
||||
echo " Instances (VMs):"
|
||||
lxc list
|
||||
echo "----------------------------------------------------------"
|
||||
|
Loading…
Reference in New Issue
Block a user