fix
authorIan Kelling <ian@iankelling.org>
Wed, 1 Mar 2023 22:08:04 +0000 (17:08 -0500)
committerIan Kelling <ian@iankelling.org>
Wed, 1 Mar 2023 22:08:04 +0000 (17:08 -0500)
distro-end

index 6b49f9b3fb3c0f9a4965b2d0ad0c994cb44e214c..297002831af6a8882e5922578ef68dd64568c382 100755 (executable)
@@ -2166,7 +2166,10 @@ case $HOSTNAME in
     sudo install -m 0755 -o root -g root -t /usr/bin /a/opt/bitcoin-23.0/bin/*
     sgo bitcoind
     sudo usermod -a -G bitcoin iank
-    sudo ln -s /q/wallets /var/lib/bitcoind
+    if [[ ! $(readlink -f /var/lib/bitcoind/wallets) == /q/wallets ]]; then
+      sudo lnf /q/wallets /var/lib/bitcoind
+      sudo chown -h bitcoin:bitcoin /var/lib/bitcoind/wallets
+    fi
     # note, there exists
     # /a/bin/ds/disabled/bitcoin
     ;;