mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-06-04 08:22:33 +02:00
Update binaries, add node format
This commit is contained in:
parent
a3c92b32b6
commit
9f41dc9d0e
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,6 +4,7 @@ logs
|
|||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
yarn-debug.log*
|
yarn-debug.log*
|
||||||
yarn-error.log*
|
yarn-error.log*
|
||||||
|
.DS_Store
|
||||||
|
|
||||||
# Runtime data
|
# Runtime data
|
||||||
pids
|
pids
|
||||||
|
Binary file not shown.
Binary file not shown.
@ -1,18 +1,23 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Stop node
|
# Stop node
|
||||||
screen -X -S node quit
|
systemctl stop node
|
||||||
sleep 10
|
sleep 10
|
||||||
|
|
||||||
# Umount disk
|
# Umount disk, remove existing partition
|
||||||
sudo umount /media/nvme
|
umount /media/nvme
|
||||||
|
parted /dev/nvme0n1 rm 1
|
||||||
|
|
||||||
# Format disk
|
# Format disk
|
||||||
sudo mkfs.ext4 -F -j /dev/nvme0n1p1
|
parted /dev/nvme0n1 mklabel gpt -s
|
||||||
|
parted -a opt /dev/nvme0n1 mkpart primary ext4 0% 100% -s
|
||||||
|
mkfs.ext4 /dev/nvme0n1p1
|
||||||
|
|
||||||
# Mount back disk
|
#configure node drive
|
||||||
sudo mount /dev/nvme0n1p1 /media/nvme
|
mount /dev/nvme0n1p1 /media/nvme
|
||||||
|
tune2fs -m .1 /dev/nvme0n1p1
|
||||||
|
mkdir /media/nvme/Bitcoin
|
||||||
|
chown -R futurebit /media/nvme/Bitcoin/
|
||||||
|
|
||||||
# Recreate Bitcoin directory
|
#Start node
|
||||||
sudo mkdir /media/nvme/Bitcoin
|
systemctl start node
|
||||||
sudo chown futurebit.futurebit /media/nvme/Bitcoin
|
|
BIN
backend/node/bin/aarch64/bitcoind
Executable file
BIN
backend/node/bin/aarch64/bitcoind
Executable file
Binary file not shown.
BIN
backend/node/bin/x86_64/bitcoind
Executable file
BIN
backend/node/bin/x86_64/bitcoind
Executable file
Binary file not shown.
@ -9,6 +9,16 @@ APOLLO_DIR=/opt/apolloapi
|
|||||||
### SYSTEM commands ###
|
### SYSTEM commands ###
|
||||||
# Write down this line the system commands needed
|
# Write down this line the system commands needed
|
||||||
|
|
||||||
|
|
||||||
|
### Update Miner/Node Binaries ###
|
||||||
|
|
||||||
|
echo -e "${YELLOW} ---> Updating System binaries${NC}"
|
||||||
|
|
||||||
|
arch=$(uname -m)
|
||||||
|
|
||||||
|
cp $APOLLO_DIR/backend/apollo-miner/bin/$arch/apollo-miner $APOLLO_DIR/backend/apollo-miner/futurebit-miner
|
||||||
|
cp $APOLLO_DIR/backend/node/bin/$arch/bitcoind $APOLLO_DIR/backend/node/bitcoind
|
||||||
|
|
||||||
# Don't touch below this line
|
# Don't touch below this line
|
||||||
echo "90" > $TMPFILE
|
echo "90" > $TMPFILE
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"node": ">= 8.x"
|
"node": ">= 8.x"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "PORT=5001 ./node_modules/nodemon/bin/nodemon.js src/init.js | ./node_modules/.bin/bunyan",
|
"dev": "./node_modules/nodemon/bin/nodemon.js src/init.js | ./node_modules/.bin/bunyan",
|
||||||
"build": "pkg . --targets node8-linux-armv7 --no-bytecode",
|
"build": "pkg . --targets node8-linux-armv7 --no-bytecode",
|
||||||
"run-container": "docker run --rm -it -v \"$(pwd)\":/hostdir --entrypoint=/bin/bash orange"
|
"run-container": "docker run --rm -it -v \"$(pwd)\":/hostdir --entrypoint=/bin/bash orange"
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user