From 5369016265f3150ac4492cf5ee31f46154c12874 Mon Sep 17 00:00:00 2001 From: Derek Smith Date: Sat, 12 Aug 2023 12:22:34 -0400 Subject: [PATCH] WWW updates. --- deployment/down.sh | 8 ++-- deployment/stub_lxc_profile.sh | 18 ++++++++- deployment/up.sh | 72 +++++++++++----------------------- 3 files changed, 43 insertions(+), 55 deletions(-) diff --git a/deployment/down.sh b/deployment/down.sh index 4ff4c11..1051138 100755 --- a/deployment/down.sh +++ b/deployment/down.sh @@ -11,6 +11,7 @@ if lxc remote get-default -q | grep -q "local"; then fi KEEP_DOCKER_VOLUME=true +OTHER_SITES_LIST= SKIP_BTCPAYSERVER=false SKIP_WWW=false SKIP_CLAMSSERVER=false @@ -18,7 +19,7 @@ SKIP_CLAMSSERVER=false # grab any modifications from the command line. for i in "$@"; do case $i in - --destroy) + --purge) KEEP_DOCKER_VOLUME=false shift ;; @@ -109,6 +110,7 @@ for VIRTUAL_MACHINE in $SERVERS; do fi fi done + else # we maintain the volumes # TODO make a snapshot on all the zfs storage volumes. echo "TODO: create snapshot of ZFS volumes and pull them to mgmt machine." @@ -117,6 +119,4 @@ done if lxc network list -q | grep -q ss-ovn; then lxc network delete ss-ovn -fi - -# TODO make a snapshot on all the zfs storage volumes. \ No newline at end of file +fi \ No newline at end of file diff --git a/deployment/stub_lxc_profile.sh b/deployment/stub_lxc_profile.sh index 6eed3d9..91e8b5b 100755 --- a/deployment/stub_lxc_profile.sh +++ b/deployment/stub_lxc_profile.sh @@ -227,9 +227,18 @@ if [ "$VIRTUAL_MACHINE" = btcpayserver ]; then - 10.10.10.66/24 EOF - fi +if [ "$VIRTUAL_MACHINE" = www ]; then + cat >> "$YAML_PATH" <> "$YAML_PATH" <> "$YAML_PATH" <> "$YAML_PATH" <