From 6bb3df8d2fb21d661f24bd18a4990f047cc89c33 Mon Sep 17 00:00:00 2001 From: Enki Date: Tue, 9 Jan 2024 13:52:45 -0800 Subject: [PATCH] hopefully last permaissions changes Fuck --- Bitcoin/coreinstall.sh | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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 }