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