From 67a9eccb9bd2f03ff692392c61f0c2341e707716 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 28 May 2016 16:23:05 +0100 Subject: [PATCH] chown in chroot --- src/freedombone-image-customise | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-image-customise b/src/freedombone-image-customise index ca263a8e..cada1d24 100755 --- a/src/freedombone-image-customise +++ b/src/freedombone-image-customise @@ -759,7 +759,7 @@ function mesh_zeronet { else sed -i "s/ZeroNet commit.*/ZeroNet commit:$ZERONET_COMMIT/g" $COMPLETION_FILE fi - chown -R zeronet:zeronet $rootdir/opt/zeronet + chroot "$rootdir" chown -R zeronet:zeronet /opt/zeronet # Hack to ensure that the file access port is opened # This is because zeronet normally relies on an internet site @@ -804,7 +804,7 @@ function mesh_zeronet { if [ ! -d $rootdir/opt/tracker ]; then mkdir $rootdir/opt/tracker fi - chown -R tracker:tracker $rootdir/opt/tracker + chroot "$rootdir" chown -R tracker:tracker /opt/tracker # publish regularly echo "* * * * * root zeronetavahi > /dev/null" >> $rootdir/etc/crontab