Fix change system password, fix bitcoin.conf

This commit is contained in:
Michele Marcucci 2022-07-20 12:24:40 +02:00
parent c3f7832ea1
commit 33fe29f789
5 changed files with 8 additions and 8 deletions

View File

@ -28,6 +28,7 @@ ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN adduser --disabled-password futurebit
RUN grep -qxF 'futurebit ALL=(ALL) NOPASSWD:ALL' /etc/sudoers || echo 'futurebit ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
RUN mkdir -p /opt/apolloapi
RUN chown -R futurebit /opt

View File

@ -94,6 +94,9 @@ arch=$(uname -m)
cp $APOLLO_DIR/backend/apollo-miner/bin/$arch/apollo-miner $APOLLO_DIR/backend/apollo-miner/futurebit-miner
### Bitcoind ###
cp $APOLLO_DIR/backend/node/bin/$arch/bitcoind $APOLLO_DIR/backend/node/bitcoind
### TOR ###
usermod -a -G debian-tor futurebit
cp $APOLLO_DIR/backend/torrc /etc/tor/torrc

View File

@ -1,11 +1,7 @@
# makes client run in background
server=1
rpcuser=futurebit
rpcpassword=futurebit
rpcpassword=vw28PnhzS5Wf
daemon=0
maxconnections=32
upnp=1
uacomment=FutureBit-Apollo-Node
#USER_INPUT_START
hello=world
#USER_INPUT_END

View File

@ -4,7 +4,7 @@ services:
build:
context: .
dockerfile: Dockerfile
user: 1000:1000
user: root
volumes:
- .:/opt/apolloapi
command: sh -c "yarn --production=false && yarn dev"
@ -16,7 +16,7 @@ services:
build:
context: .
dockerfile: Dockerfile
user: 1000:1000
user: root
volumes:
- ./apolloui:/app
command: sh -c "npm start"

View File

@ -16,7 +16,7 @@ module.exports.auth = {
},
changeSystemPassword (password) {
exec(`sudo usermod --password ${password} futurebit`)
exec(`echo "futurebit:${password}" | sudo chpasswd`)
},
async changeNodeRpcPassword (password) {