Skip to content

Commit c67bb69

Browse files
parameterize galexie captive core database path
1 parent 3f5c906 commit c67bb69

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

local/galexie/etc/stellar-captive-core.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ NETWORK_PASSPHRASE="__NETWORK__"
33
HTTP_PORT=11926
44
PUBLIC_HTTP_PORT=false
55
PEER_PORT=11925
6-
DATABASE="sqlite3:///tmp/stellar-core/galexie-captive-core.db"
6+
DATABASE="sqlite3://__DATABASE__"
77
ARTIFICIALLY_ACCELERATE_TIME_FOR_TESTING=true
88

99
UNSAFE_QUORUM=true

start

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,10 @@ function init_galexie() {
633633
run_silent "chown-ledger-meta-store" chown -R stellar:stellar $LEDGERMETASTOREHOME
634634

635635
pushd $GALEXIEHOME
636+
mkdir ./captive-core
636637

638+
GALEXIE_CAPTIVE_CORE_CFG=$GALEXIEHOME/etc/stellar-captive-core.cfg
639+
run_silent "finalize-galexie-captivecore-db" perl -pi -e "s*__DATABASE__*$GALEXIEHOME/captive-core/galexie.db*g" $GALEXIE_CAPTIVE_CORE_CFG
637640
perl -pi -e "s/__NETWORK__/$NETWORK_PASSPHRASE/g" etc/galexie.toml
638641
perl -pi -e "s/__NETWORK__/$NETWORK_PASSPHRASE/g" etc/stellar-captive-core.cfg
639642

0 commit comments

Comments
 (0)