Added PROEJCT_NAME=

This commit is contained in:
Derek Smith 2023-03-14 11:45:29 -04:00
parent 7e8706f81c
commit 672be48b08
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -40,6 +40,9 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
export PROJECT_PREFIX="$PROJECT_PREFIX" export PROJECT_PREFIX="$PROJECT_PREFIX"
export BITCOIN_CHAIN="$BITCOIN_CHAIN" export BITCOIN_CHAIN="$BITCOIN_CHAIN"
PROJECT_NAME="$PROJECT_PREFIX-$BITCOIN_CHAIN"
PROJECT_PATH="$PROJECTS_DIR/$PROJECT_NAME"
# if the user sets USER_TARGET_PROJECT, let's ensure the project exists. # if the user sets USER_TARGET_PROJECT, let's ensure the project exists.
if [ -n "$USER_TARGET_PROJECT" ]; then if [ -n "$USER_TARGET_PROJECT" ]; then
if ! lxc project list | grep -q "$USER_TARGET_PROJECT"; then if ! lxc project list | grep -q "$USER_TARGET_PROJECT"; then