From a329a5cbfcc577179960339088a235508fda68e3 Mon Sep 17 00:00:00 2001 From: nolim1t Date: Fri, 6 Mar 2020 12:21:59 +0700 Subject: [PATCH] lnd.conf overrwrite --- stage2/07-configure-LND/01-run.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stage2/07-configure-LND/01-run.sh b/stage2/07-configure-LND/01-run.sh index 913246f..19564b1 100755 --- a/stage2/07-configure-LND/01-run.sh +++ b/stage2/07-configure-LND/01-run.sh @@ -1,4 +1,6 @@ chmod 644 files/lnd.conf -mkdir ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/lnd +echo "Copying lnd.conf to overwrite the existing LND.conf" cp files/lnd.conf ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/lnd/lnd.conf - +on_chroot << EOF +chown -R ${FIRST_USER_NAME}:${FIRST_USER_NAME} /home/${FIRST_USER_NAME} +EOF