1
1

Compare commits

..

No commits in common. "d35a882d8b8870c4c770b40e66ba33ffded8b339" and "2730bda32b79cd8433d8855e38e46360aab2c080" have entirely different histories.

2 changed files with 9 additions and 32 deletions

View File

@ -1,36 +1,13 @@
#!/bin/bash
set -eu
cd "$(dirname "$0")"
echo "LXD REMOTE: $(lxc remote get-default)"
. ../defaults.sh
lxc project list
. ./remote_env.sh
echo "Global Settings:"
lxc image list
lxc storage list
lxc storage volume list ss-base
echo
echo
for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
NO_PARENS="${PROJECT_CHAIN:1:${#PROJECT_CHAIN}-2}"
PROJECT_PREFIX=$(echo "$NO_PARENS" | cut -d'|' -f1)
BITCOIN_CHAIN=$(echo "$NO_PARENS" | cut -d'|' -f2)
PROJECT_NAME="$PROJECT_PREFIX-$BITCOIN_CHAIN"
if ! lxc info | grep "project:" | grep -q "$PROJECT_NAME"; then
if lxc project list | grep -q "$PROJECT_NAME"; then
lxc project switch "$PROJECT_NAME"
fi
fi
lxc network list
lxc profile list
lxc list
done
lxc image list
lxc project list
lxc network list
lxc profile list
lxc list

View File

@ -113,7 +113,7 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
cd -
# run deploy which backups up everything, but doesnt restart any services.
bash -c "./project/deploy.sh --project=$PROJECT_NAME --stop --no-cert-renew --backup-archive-path=$BTCPAY_RESTORE_ARCHIVE_PATH"
bash -c "./project/deploy.sh --stop --no-cert-renew --backup-archive-path=$BTCPAY_RESTORE_ARCHIVE_PATH"
# call the destroy script. If user proceed, then user data is DESTROYED!
./destroy.sh
@ -125,6 +125,6 @@ for PROJECT_CHAIN in ${DEPLOYMENT_STRING//,/ }; do
cd -
# Then we can run a restore operation and specify the backup archive at the CLI.
bash -c "./project/deploy.sh --project=$PROJECT_NAME -y --restore-www --restore-btcpay --backup-archive-path=$BTCPAY_RESTORE_ARCHIVE_PATH"
bash -c "./project/deploy.sh -y --restore-www --restore-btcpay --backup-archive-path=$BTCPAY_RESTORE_ARCHIVE_PATH"
done