fi
fi
- if [[ -d /var/lib/bitcoind ]]; then
+ if [[ -d /var/lib/bitcoind && -d /p/c/user-specific/bitcoin ]]; then
s rsync -clpgoDiSAX --chmod=Dg-s --chown=bitcoin:bitcoin /p/c/user-specific/bitcoin/settings.json /var/lib/bitcoind
+ # i'm not sure of the perfect permissions here, but
+ # 640 seems good.
s rsync -rclpgoDiSAX --chmod=Dg-s --chown=root:bitcoin /p/c/user-specific/bitcoin/bitcoin /etc
fi
##### end special extra stuff #####
case $HOSTNAME in
sy|kd)
- sudo install -m 0755 -o root -g root -t /usr/bin /a/opt/bitcoin-24.1/bin/*
+ sudo install -m 0755 -o root -g root -t /usr/bin /a/opt/bitcoin-24.0.1/bin/*
sgo bitcoind
# note: the bitcoin user & group are setup in fai
sudo usermod -a -G bitcoin iank
+ # todo: make bitcoin have a stable uid/gid
if [[ ! $(readlink -f /var/lib/bitcoind/wallets) == /q/wallets ]]; then
- sudo lnf /q/wallets /var/lib/bitcoind
+ s lnf /q/wallets /var/lib/bitcoind
sudo chown -h bitcoin:bitcoin /var/lib/bitcoind/wallets
fi
# note, there exists