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"
|
LNPLAY_ENV_FILE=./project/lnplay/environments/"$LNPLAY_SERVER_FQDN"
|
||||||
|
|
||||||
# and we have to set our environment file as well.
|
if [ ! -f "$LNPLAY_ENV_FILE" ]; then
|
||||||
cat > "$LNPLAY_ENV_FILE" <<EOL
|
# and we have to set our environment file as well.
|
||||||
|
cat > "$LNPLAY_ENV_FILE" <<EOL
|
||||||
DOCKER_HOST=ssh://ubuntu@${LNPLAY_SERVER_FQDN}
|
DOCKER_HOST=ssh://ubuntu@${LNPLAY_SERVER_FQDN}
|
||||||
DOMAIN_NAME=${PRIMARY_DOMAIN}
|
DOMAIN_NAME=${PRIMARY_DOMAIN}
|
||||||
ENABLE_TLS=true
|
ENABLE_TLS=true
|
||||||
@ -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.
|
||||||
|
Loading…
Reference in New Issue
Block a user