fix: make clrest certs groudp readable, add rtl to bitcoin group

follow up of #4328
This commit is contained in:
openoms 2024-01-17 13:01:50 +01:00
parent 5f33c94f09
commit 0a215c2476
No known key found for this signature in database
GPG key ID: 5BFB77609B081B65
2 changed files with 3 additions and 1 deletions

View file

@ -139,6 +139,8 @@ if [ "$1" = "install" ]; then
sudo adduser --system --group --home /home/rtl rtl || exit 1
fi
sudo usermod -a -G bitcoin rtl
# download source code and set to tag release
echo "# Get the RTL Source Code"
sudo -u rtl rm -rf /home/rtl/RTL 2>/dev/null

View file

@ -45,7 +45,7 @@ function symlinkToAppData() {
fi
sudo ln -s /mnt/hdd/app-data/c-lightning-REST/${CLNETWORK}/certs \
/home/bitcoin/c-lightning-REST/${CLNETWORK}/
sudo chmod -R 700 /mnt/hdd/app-data/c-lightning-REST
sudo chmod -R 750 /mnt/hdd/app-data/c-lightning-REST
sudo chown -R bitcoin:bitcoin /mnt/hdd/app-data/c-lightning-REST
}