mirror of
https://github.com/Retropex/apolloapi-v2.git
synced 2025-05-28 21:12:37 +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*
|
||||
yarn-debug.log*
|
||||
yarn-error.log*
|
||||
.DS_Store
|
||||
|
||||
# Runtime data
|
||||
pids
|
||||
|
Binary file not shown.
Binary file not shown.
@ -1,18 +1,23 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Stop node
|
||||
screen -X -S node quit
|
||||
systemctl stop node
|
||||
sleep 10
|
||||
|
||||
# Umount disk
|
||||
sudo umount /media/nvme
|
||||
# Umount disk, remove existing partition
|
||||
umount /media/nvme
|
||||
parted /dev/nvme0n1 rm 1
|
||||
|
||||
# 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
|
||||
sudo mount /dev/nvme0n1p1 /media/nvme
|
||||
#configure node drive
|
||||
mount /dev/nvme0n1p1 /media/nvme
|
||||
tune2fs -m .1 /dev/nvme0n1p1
|
||||
mkdir /media/nvme/Bitcoin
|
||||
chown -R futurebit /media/nvme/Bitcoin/
|
||||
|
||||
# Recreate Bitcoin directory
|
||||
sudo mkdir /media/nvme/Bitcoin
|
||||
sudo chown futurebit.futurebit /media/nvme/Bitcoin
|
||||
#Start node
|
||||
systemctl start node
|
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 ###
|
||||
# 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
|
||||
echo "90" > $TMPFILE
|
||||
|
||||
|
@ -10,7 +10,7 @@
|
||||
"node": ">= 8.x"
|
||||
},
|
||||
"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",
|
||||
"run-container": "docker run --rm -it -v \"$(pwd)\":/hostdir --entrypoint=/bin/bash orange"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user