chown in chroot
This commit is contained in:
parent
d07212b118
commit
67a9eccb9b
|
@ -759,7 +759,7 @@ function mesh_zeronet {
|
||||||
else
|
else
|
||||||
sed -i "s/ZeroNet commit.*/ZeroNet commit:$ZERONET_COMMIT/g" $COMPLETION_FILE
|
sed -i "s/ZeroNet commit.*/ZeroNet commit:$ZERONET_COMMIT/g" $COMPLETION_FILE
|
||||||
fi
|
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
|
# Hack to ensure that the file access port is opened
|
||||||
# This is because zeronet normally relies on an internet site
|
# This is because zeronet normally relies on an internet site
|
||||||
|
@ -804,7 +804,7 @@ function mesh_zeronet {
|
||||||
if [ ! -d $rootdir/opt/tracker ]; then
|
if [ ! -d $rootdir/opt/tracker ]; then
|
||||||
mkdir $rootdir/opt/tracker
|
mkdir $rootdir/opt/tracker
|
||||||
fi
|
fi
|
||||||
chown -R tracker:tracker $rootdir/opt/tracker
|
chroot "$rootdir" chown -R tracker:tracker /opt/tracker
|
||||||
|
|
||||||
# publish regularly
|
# publish regularly
|
||||||
echo "* * * * * root zeronetavahi > /dev/null" >> $rootdir/etc/crontab
|
echo "* * * * * root zeronetavahi > /dev/null" >> $rootdir/etc/crontab
|
||||||
|
|
Loading…
Reference in New Issue