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