1
1

Fix cert renewal logic.

This commit is contained in:
Derek Smith 2023-04-05 12:00:39 -04:00
parent a3b29e129a
commit bf5ff6903e
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
2 changed files with 2 additions and 3 deletions

View File

@ -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"

View File

@ -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