1
1

Make management machine persistence mandatory.

This commit is contained in:
Derek Smith 2023-03-20 10:25:35 -04:00
parent 786d34df93
commit f06a3545d2
Signed by: farscapian
GPG Key ID: B443E530A14E1C90
2 changed files with 4 additions and 6 deletions

View File

@ -106,7 +106,7 @@ export PRIMARY_DOMAIN=
# this is the git commit of the project/ sub git repo.
# used in the migration script to switch into past for backup
# then back to present (TARGET_PROJECT_GIT_COMMIT) for restore.
export TARGET_PROJECT_GIT_COMMIT=c2f3612beeb5a386545596fdc3e734b20048013d
export TARGET_PROJECT_GIT_COMMIT=4fb926a8cfc75055d579fdcabebe0a20b3916963
#
export TESTNET_BLOCK_HASH=00000000d8277ba1ca66b40b3e3476629e6f0f97c5b8cfaeabfe402e55db223a

View File

@ -95,11 +95,9 @@ if ! lxc list --format csv | grep -q ss-mgmt; then
# mount the pre-verified sovereign stack git repo into the new vm
lxc config device add ss-mgmt ss-code disk source="$(pwd)" path=/home/ubuntu/sovereign-stack
# if the System Owner has a ~/.ss directory, then we'll mount it into the vm
# this allows the data to persist across ss-mgmt vms; ie. install/uninstall
if [ -d "$SS_ROOT_PATH" ]; then
lxc config device add ss-mgmt ss-root disk source="$SS_ROOT_PATH" path=/home/ubuntu/.ss
fi
# create the ~/.ss path and mount it into the vm.
mkdir -p "$SS_ROOT_PATH"
lxc config device add ss-mgmt ss-root disk source="$SS_ROOT_PATH" path=/home/ubuntu/.ss
# if a ~/.bitcoin/testnet3/blocks direrectory exists, mount it in.
BITCOIN_DIR="$HOME/.bitcoin"