mirror of
https://github.com/rootzoll/raspiblitz.git
synced 2025-02-25 07:07:46 +01:00
loop: sync all macaroons and unix groups for access
This commit is contained in:
parent
b6c24da1f2
commit
e948e1470e
2 changed files with 13 additions and 1 deletions
|
@ -66,6 +66,8 @@ if [ "${loop}" != "${choice}" ]; then
|
||||||
errorOnInstall=$?
|
errorOnInstall=$?
|
||||||
if [ "${choice}" = "on" ]; then
|
if [ "${choice}" = "on" ]; then
|
||||||
if [ ${errorOnInstall} -eq 0 ]; then
|
if [ ${errorOnInstall} -eq 0 ]; then
|
||||||
|
# check macaroons and fix missing
|
||||||
|
/home/admin/config.scripts/lnd.credential.sh check
|
||||||
sudo systemctl start loopd
|
sudo systemctl start loopd
|
||||||
/home/admin/config.scripts/bonus.loop.sh menu
|
/home/admin/config.scripts/bonus.loop.sh menu
|
||||||
else
|
else
|
||||||
|
|
|
@ -48,12 +48,22 @@ if [ "$1" = "1" ] || [ "$1" = "on" ]; then
|
||||||
# create symlink
|
# create symlink
|
||||||
sudo ln -s "/mnt/hdd/app-data/lnd/" "/home/loop/.lnd"
|
sudo ln -s "/mnt/hdd/app-data/lnd/" "/home/loop/.lnd"
|
||||||
|
|
||||||
|
# sync all macaroons and unix groups for access
|
||||||
|
/home/admin/config.scripts/lnd.credentials.sh sync
|
||||||
|
# macaroons will be checked after install
|
||||||
|
|
||||||
# add user to group with admin access to lnd
|
# add user to group with admin access to lnd
|
||||||
sudo /usr/sbin/usermod --append --groups lndadmin loop
|
sudo /usr/sbin/usermod --append --groups lndadmin loop
|
||||||
# add user to group with readonly access on lnd
|
# add user to group with readonly access on lnd
|
||||||
sudo /usr/sbin/usermod --append --groups lndreadonly loop
|
sudo /usr/sbin/usermod --append --groups lndreadonly loop
|
||||||
# add user to group with invoice access on lnd
|
# add user to group with invoice access on lnd
|
||||||
sudo /usr/sbin/usermod --append --groups lndinvoice loop
|
sudo /usr/sbin/usermod --append --groups lndinvoice loop
|
||||||
|
# add user to groups with all macaroons
|
||||||
|
sudo /usr/sbin/usermod --append --groups lndinvoices loop
|
||||||
|
sudo /usr/sbin/usermod --append --groups lndchainnotifier loop
|
||||||
|
sudo /usr/sbin/usermod --append --groups lndsigner loop
|
||||||
|
sudo /usr/sbin/usermod --append --groups lndwalletkit loop
|
||||||
|
sudo /usr/sbin/usermod --append --groups lndrouter loop
|
||||||
|
|
||||||
# install from source
|
# install from source
|
||||||
cd /home/loop
|
cd /home/loop
|
||||||
|
|
Loading…
Add table
Reference in a new issue