1
1

Do not stub out LNPLAY_ENV_FILE if exists

This commit is contained in:
Derek Smith 2023-12-19 09:53:59 -05:00
parent 575deff1d2
commit 17d7e9c75a
Signed by: farscapian
GPG Key ID: B443E530A14E1C90

View File

@ -426,6 +426,7 @@ EOL
LNPLAY_ENV_FILE=./project/lnplay/environments/"$LNPLAY_SERVER_FQDN" LNPLAY_ENV_FILE=./project/lnplay/environments/"$LNPLAY_SERVER_FQDN"
if [ ! -f "$LNPLAY_ENV_FILE" ]; then
# and we have to set our environment file as well. # and we have to set our environment file as well.
cat > "$LNPLAY_ENV_FILE" <<EOL cat > "$LNPLAY_ENV_FILE" <<EOL
DOCKER_HOST=ssh://ubuntu@${LNPLAY_SERVER_FQDN} DOCKER_HOST=ssh://ubuntu@${LNPLAY_SERVER_FQDN}
@ -435,8 +436,11 @@ BTC_CHAIN=${BITCOIN_CHAIN}
CHANNEL_SETUP=none CHANNEL_SETUP=none
LNPLAY_SERVER_PATH=${SITES_PATH}/${PRIMARY_DOMAIN}/lnplayserver LNPLAY_SERVER_PATH=${SITES_PATH}/${PRIMARY_DOMAIN}/lnplayserver
DEPLOY_PRISM_PLUGIN=true DEPLOY_PRISM_PLUGIN=true
NAMES_FILE_PATH
EOL EOL
fi
INCUS_VM_NAME="${LNPLAY_SERVER_FQDN//./-}" INCUS_VM_NAME="${LNPLAY_SERVER_FQDN//./-}"
if ! incus image list -q --format csv | grep -q "$INCUS_VM_NAME"; then if ! incus image list -q --format csv | grep -q "$INCUS_VM_NAME"; then
# do all the docker image creation steps, but don't run services. # do all the docker image creation steps, but don't run services.