1
1
Fork 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
1 changed files with 6 additions and 2 deletions

View File

@ -426,8 +426,9 @@ EOL
LNPLAY_ENV_FILE=./project/lnplay/environments/"$LNPLAY_SERVER_FQDN"
# and we have to set our environment file as well.
cat > "$LNPLAY_ENV_FILE" <<EOL
if [ ! -f "$LNPLAY_ENV_FILE" ]; then
# and we have to set our environment file as well.
cat > "$LNPLAY_ENV_FILE" <<EOL
DOCKER_HOST=ssh://ubuntu@${LNPLAY_SERVER_FQDN}
DOMAIN_NAME=${PRIMARY_DOMAIN}
ENABLE_TLS=true
@ -435,8 +436,11 @@ BTC_CHAIN=${BITCOIN_CHAIN}
CHANNEL_SETUP=none
LNPLAY_SERVER_PATH=${SITES_PATH}/${PRIMARY_DOMAIN}/lnplayserver
DEPLOY_PRISM_PLUGIN=true
NAMES_FILE_PATH
EOL
fi
INCUS_VM_NAME="${LNPLAY_SERVER_FQDN//./-}"
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.