diff --git a/Bitcoin/coreinstall.sh b/Bitcoin/coreinstall.sh index c408891..94760f0 100644 --- a/Bitcoin/coreinstall.sh +++ b/Bitcoin/coreinstall.sh @@ -176,7 +176,6 @@ install_i2p() { sleep 3 } - # Bitocin Stuff # Checks if Bitcoin Core is installed @@ -548,11 +547,16 @@ EOF } # Starts and enables Bitcoin Core -start_and_enable_bitcoin_core() { - systemctl enable bitcoind - systemctl start bitcoind - echo "Core has been started and added to systemd." - echo "systemd helps core start after the computer boots." +start_and_enable_bitcoin_core() { + echo "Final permissions check..." + sudo chown -R bitcoin:bitcoin /home/bitcoin + sudo chmod -R u+rw,g+rw,o-rwx /home/bitcoin + sudo chmod u+x /usr/local/bin/bitcoind + sudo chmod u+x /usr/local/bin/bitcoin-cli + sudo systemctl enable bitcoind + sudo systemctl start bitcoind + echo "Bitcoin Core has been started and added to systemd." + echo "Now Bitcoin Core will start on boot." sleep 3 }