mirror of
https://github.com/mynodebtc/mynode.git
synced 2024-12-26 14:34:00 +00:00
Add pre mempool script
This commit is contained in:
parent
bb43410f0d
commit
609df7ea48
20
rootfs/standard/usr/bin/mynode_pre_mempool.sh
Executable file
20
rootfs/standard/usr/bin/mynode_pre_mempool.sh
Executable file
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
source /usr/share/mynode/mynode_config.sh
|
||||||
|
source /usr/share/mynode/mynode_app_versions.sh
|
||||||
|
|
||||||
|
set -x
|
||||||
|
|
||||||
|
BTCRPCPW=$(cat /mnt/hdd/mynode/settings/.btcrpcpw)
|
||||||
|
|
||||||
|
cp -f /usr/share/mynode/mempool-docker-compose.yml /mnt/hdd/mynode/mempool/docker-compose.yml
|
||||||
|
|
||||||
|
cp -f /usr/share/mynode/mempool.env /mnt/hdd/mynode/mempool/.env
|
||||||
|
sed -i "s/VERSION=.*/VERSION=$MEMPOOL_VERSION/g" /mnt/hdd/mynode/mempool/.env
|
||||||
|
sed -i "s/BITCOIN_RPC_PASS=.*/BITCOIN_RPC_PASS=$BTCRPCPW/g" /mnt/hdd/mynode/mempool/.env
|
||||||
|
|
||||||
|
if [ $IS_RASPI -eq 1 ] && [ $IS_RASPI4_ARM64 -eq 0 ]; then
|
||||||
|
sed -i "s|MARIA_DB_IMAGE=.*|MARIA_DB_IMAGE=hypriot/rpi-mysql:latest|g" /mnt/hdd/mynode/mempool/.env
|
||||||
|
else
|
||||||
|
sed -i "s|MARIA_DB_IMAGE=.*|MARIA_DB_IMAGE=mariadb:10.5.8|g" /mnt/hdd/mynode/mempool/.env
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user