Do not stub out LNPLAY_ENV_FILE if exists
This commit is contained in:
parent
575deff1d2
commit
17d7e9c75a
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user