Clams server updates.
This commit is contained in:
parent
ddcc119030
commit
d88814e6e4
@ -91,6 +91,8 @@ for VIRTUAL_MACHINE in www btcpayserver; do
|
||||
VM_ID=w
|
||||
if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
|
||||
VM_ID="b"
|
||||
elif [ "$VIRTUAL_MACHINE" = clamsserver ]; then
|
||||
VM_ID="c"
|
||||
fi
|
||||
|
||||
# d for docker; b for backup; s for ss-data
|
||||
|
@ -73,6 +73,13 @@ if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then
|
||||
|
||||
EOF
|
||||
|
||||
elif [ "$VIRTUAL_MACHINE" = clamsserver ]; then
|
||||
cat >> "$YAML_PATH" <<EOF
|
||||
limits.cpu: "${CLAMS_SERVER_CPU_COUNT}"
|
||||
limits.memory: "${CLAMS_SERVER_MEMORY_MB}MB"
|
||||
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
||||
. ./target.sh
|
||||
|
@ -43,6 +43,7 @@ RESTORE_WWW=false
|
||||
RESTORE_CERTS=false
|
||||
BACKUP_BTCPAY=true
|
||||
SKIP_BTCPAYSERVER=false
|
||||
SKIP_CLAMSSERVER=false
|
||||
BACKUP_BTCPAY_ARCHIVE_PATH=
|
||||
RESTORE_BTCPAY=false
|
||||
SKIP_BTCPAY=false
|
||||
@ -51,6 +52,7 @@ REMOTE_NAME="$(lxc remote get-default)"
|
||||
STOP_SERVICES=false
|
||||
USER_SAYS_YES=false
|
||||
BTCPAY_SERVER_MAC_ADDRESS=
|
||||
CLAMS_SERVER_MAC_ADDRESS=
|
||||
|
||||
# grab any modifications from the command line.
|
||||
for i in "$@"; do
|
||||
@ -193,7 +195,7 @@ DOMAIN_NAME="${DOMAIN_NAME}"
|
||||
SITE_LANGUAGE_CODES="en"
|
||||
DUPLICITY_BACKUP_PASSPHRASE="$(new_pass)"
|
||||
DEPLOY_GHOST=true
|
||||
DEPLOY_CLAMS=false
|
||||
|
||||
DEPLOY_NEXTCLOUD=false
|
||||
DEPLOY_NOSTR=false
|
||||
NOSTR_ACCOUNT_PUBKEY=
|
||||
@ -450,6 +452,8 @@ if [ "$SKIP_WWW" = false ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
# don't run clams stuff if user specifies --skip-btcpayserver
|
||||
if [ "$SKIP_CLAMSSERVER" = false ]; then
|
||||
# now let's run the www and btcpay-specific provisioning scripts.
|
||||
if [ -n "$CLAMS_SERVER_MAC_ADDRESS" ]; then
|
||||
export DOCKER_HOST="ssh://ubuntu@$CLAMS_SERVER_FQDN"
|
||||
@ -466,11 +470,13 @@ EOL
|
||||
|
||||
# and we have to set our environment file as well.
|
||||
cat > ./project/clams-server/environments/"$CLAMS_SERVER_FQDN" <<EOL
|
||||
DOCKER_HOST=ssh://ubuntu@$CLAMS_SERVER_FQDN
|
||||
DOCKER_HOST=ssh://ubuntu@${CLAMS_SERVER_FQDN}
|
||||
DOMAIN_NAME=${PRIMARY_DOMAIN}
|
||||
ENABLE_TLS=true
|
||||
BTC_CHAIN=${BITCOIN_CHAIN}
|
||||
CLN_COUNT=1
|
||||
EOL
|
||||
|
||||
bash -c "./project/clams-server/up.sh -y"
|
||||
fi
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user