Deployment improvements.
This commit is contained in:
parent
fbc6e2b6e5
commit
df205cfabf
@ -3,7 +3,7 @@
|
||||
set -exu
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
VIRTUAL_MACHINE=
|
||||
VIRTUAL_MACHINE=base
|
||||
LXD_HOSTNAME=
|
||||
|
||||
# grab any modifications from the command line.
|
||||
@ -46,8 +46,9 @@ if [ "$VIRTUAL_MACHINE" = www ]; then
|
||||
limits.memory: "${WWW_SERVER_MEMORY_MB}MB"
|
||||
|
||||
EOF
|
||||
fi
|
||||
|
||||
else [ "$VIRTUAL_MACHINE" = btcpayserver ];
|
||||
if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
|
||||
cat >> "$YAML_PATH" <<EOF
|
||||
limits.cpu: "${BTCPAY_SERVER_CPU_COUNT}"
|
||||
limits.memory: "${BTCPAY_SERVER_MEMORY_MB}MB"
|
||||
@ -56,8 +57,8 @@ EOF
|
||||
|
||||
fi
|
||||
|
||||
# if VIRTUAL_MACHINE is undefined, then we doing the base image.
|
||||
if [ -z "$VIRTUAL_MACHINE" ]; then
|
||||
# if VIRTUAL_MACHINE=base, then we doing the base image.
|
||||
if [ "$VIRTUAL_MACHINE" = base ]; then
|
||||
# this is for the base image only...
|
||||
cat >> "$YAML_PATH" <<EOF
|
||||
user.vendor-data: |
|
||||
@ -197,7 +198,7 @@ devices:
|
||||
EOF
|
||||
|
||||
# Stub out the network piece for the base image.
|
||||
if [ -z "$VIRTUAL_MACHINE" ]; then
|
||||
if [ "$VIRTUAL_MACHINE" = base ]; then
|
||||
cat >> "$YAML_PATH" <<EOF
|
||||
enp6s0:
|
||||
name: enp6s0
|
||||
|
Loading…
Reference in New Issue
Block a user