Make management machine persistence mandatory.
This commit is contained in:
parent
786d34df93
commit
f06a3545d2
@ -106,7 +106,7 @@ export PRIMARY_DOMAIN=
|
|||||||
# this is the git commit of the project/ sub git repo.
|
# this is the git commit of the project/ sub git repo.
|
||||||
# used in the migration script to switch into past for backup
|
# used in the migration script to switch into past for backup
|
||||||
# then back to present (TARGET_PROJECT_GIT_COMMIT) for restore.
|
# 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
|
export TESTNET_BLOCK_HASH=00000000d8277ba1ca66b40b3e3476629e6f0f97c5b8cfaeabfe402e55db223a
|
||||||
|
@ -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
|
# 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
|
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
|
# create the ~/.ss path and mount it into the vm.
|
||||||
# this allows the data to persist across ss-mgmt vms; ie. install/uninstall
|
mkdir -p "$SS_ROOT_PATH"
|
||||||
if [ -d "$SS_ROOT_PATH" ]; then
|
lxc config device add ss-mgmt ss-root disk source="$SS_ROOT_PATH" path=/home/ubuntu/.ss
|
||||||
lxc config device add ss-mgmt ss-root disk source="$SS_ROOT_PATH" path=/home/ubuntu/.ss
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if a ~/.bitcoin/testnet3/blocks direrectory exists, mount it in.
|
# if a ~/.bitcoin/testnet3/blocks direrectory exists, mount it in.
|
||||||
BITCOIN_DIR="$HOME/.bitcoin"
|
BITCOIN_DIR="$HOME/.bitcoin"
|
||||||
|
Loading…
Reference in New Issue
Block a user