forked from ss/sovereign-stack
1
This commit is contained in:
parent
bd3918ec93
commit
c832d1d050
@ -41,7 +41,7 @@ source "$CLUSTER_DEFINITION"
|
|||||||
|
|
||||||
# source project defition.
|
# source project defition.
|
||||||
# Now let's load the project definition.
|
# Now let's load the project definition.
|
||||||
PROJECT_PATH="$PROJECTS_DIR/$BITCOIN_CHAIN"
|
PROJECT_PATH="$PROJECTS_DIR/$PROJECT_NAME"
|
||||||
PROJECT_DEFINITION_PATH="$PROJECT_PATH/project_definition"
|
PROJECT_DEFINITION_PATH="$PROJECT_PATH/project_definition"
|
||||||
source "$PROJECT_DEFINITION_PATH"
|
source "$PROJECT_DEFINITION_PATH"
|
||||||
|
|
||||||
|
@ -313,19 +313,19 @@ EOL
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
PROJECT_PATH="$PROJECTS_DIR/$BITCOIN_CHAIN"
|
PROJECT_PATH="$PROJECTS_DIR/$PROJECT_NAME"
|
||||||
mkdir -p "$PROJECT_PATH" "$CLUSTER_PATH/projects"
|
mkdir -p "$PROJECT_PATH" "$CLUSTER_PATH/projects"
|
||||||
export PROJECT_PATH="$PROJECT_PATH"
|
export PROJECT_PATH="$PROJECT_PATH"
|
||||||
|
|
||||||
# create a symlink from ./clusterpath/projects/project
|
# create a symlink from ./clusterpath/projects/project
|
||||||
if [ ! -d "$CLUSTER_PATH/projects/$BITCOIN_CHAIN" ]; then
|
if [ ! -d "$CLUSTER_PATH/projects/$PROJECT_NAME" ]; then
|
||||||
ln -s "$PROJECT_PATH" "$CLUSTER_PATH/projects/$BITCOIN_CHAIN"
|
ln -s "$PROJECT_PATH" "$CLUSTER_PATH/projects/$PROJECT_NAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# create the lxc project as specified by BITCOIN_CHAIN
|
# create the lxc project as specified by PROJECT_NAME
|
||||||
if ! lxc project list | grep -q "$BITCOIN_CHAIN"; then
|
if ! lxc project list | grep -q "$PROJECT_NAME"; then
|
||||||
echo "INFO: The lxd project specified in the cluster_definition did not exist. We'll create one!"
|
echo "INFO: The lxd project specified in the cluster_definition did not exist. We'll create one!"
|
||||||
lxc project create "$BITCOIN_CHAIN"
|
lxc project create "$PROJECT_NAME"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# # check if we need to provision a new lxc project.
|
# # check if we need to provision a new lxc project.
|
||||||
@ -400,6 +400,9 @@ export DEPLOY_BTCPAY_SERVER=true
|
|||||||
export SITE_PATH="$SITES_PATH/$DOMAIN_NAME"
|
export SITE_PATH="$SITES_PATH/$DOMAIN_NAME"
|
||||||
export PRIMARY_WWW_FQDN="$WWW_HOSTNAME.$DOMAIN_NAME"
|
export PRIMARY_WWW_FQDN="$WWW_HOSTNAME.$DOMAIN_NAME"
|
||||||
|
|
||||||
|
echo "HERE"
|
||||||
|
exit 1
|
||||||
|
|
||||||
stub_site_definition
|
stub_site_definition
|
||||||
|
|
||||||
# bring the VMs up under the primary domain name.
|
# bring the VMs up under the primary domain name.
|
||||||
|
Loading…
Reference in New Issue
Block a user