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