chown in chroot
This commit is contained in:
parent
d07212b118
commit
67a9eccb9b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue