chown in chroot

This commit is contained in:
Bob Mottram 2016-05-28 16:23:05 +01:00
parent d07212b118
commit 67a9eccb9b
1 changed files with 2 additions and 2 deletions

View File

@ -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