Fix cert renewal logic.
This commit is contained in:
parent
a3b29e129a
commit
bf5ff6903e
@ -40,13 +40,12 @@ export SITE_PATH="$SITES_PATH/$PRIMARY_DOMAIN"
|
|||||||
source "$SITE_PATH/site.conf"
|
source "$SITE_PATH/site.conf"
|
||||||
source ./project/domain_env.sh
|
source ./project/domain_env.sh
|
||||||
|
|
||||||
|
|
||||||
SKIP=btcpayserver
|
SKIP=btcpayserver
|
||||||
for VIRTUAL_MACHINE in www btcpayserver; do
|
for VIRTUAL_MACHINE in www btcpayserver; do
|
||||||
LXD_NAME="$VIRTUAL_MACHINE-${PRIMARY_DOMAIN//./-}"
|
LXD_NAME="$VIRTUAL_MACHINE-${PRIMARY_DOMAIN//./-}"
|
||||||
|
|
||||||
if lxc list | grep -q "$LXD_NAME"; then
|
if lxc list | grep -q "$LXD_NAME"; then
|
||||||
bash -c "./project/deploy.sh --stop --no-cert-renew --skip-$SKIP"
|
bash -c "./project/deploy.sh --stop --skip-$SKIP"
|
||||||
|
|
||||||
lxc stop "$LXD_NAME"
|
lxc stop "$LXD_NAME"
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ git checkout "$GIT_COMMIT_ON_REMOTE_HOST"
|
|||||||
cd -
|
cd -
|
||||||
|
|
||||||
# run deploy which backups up everything, but doesnt restart any services.
|
# run deploy which backups up everything, but doesnt restart any services.
|
||||||
bash -c "./project/deploy.sh --stop --no-cert-renew --backup-archive-path=$BTCPAY_RESTORE_ARCHIVE_PATH --backup-www --backup-btcpayserver"
|
bash -c "./project/deploy.sh --stop --backup-archive-path=$BTCPAY_RESTORE_ARCHIVE_PATH --backup-www --backup-btcpayserver"
|
||||||
|
|
||||||
# call the destroy script. This brings down the existing deployment. Does NOT destroy docker data.
|
# call the destroy script. This brings down the existing deployment. Does NOT destroy docker data.
|
||||||
./down.sh
|
./down.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user