chroot
This commit is contained in:
parent
16a5e7db60
commit
c32179f8d7
|
@ -593,10 +593,17 @@ function mesh_tox_client {
|
||||||
echo $"Toxic client compile $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
|
echo $"Toxic client compile $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
|
||||||
|
|
||||||
# create a tox user
|
# create a tox user
|
||||||
|
if [ ${rootdir} ]; then
|
||||||
|
if [ ! -f ${rootdir}/home/${MY_USERNAME}/.config/tox/data.tox ]; then
|
||||||
|
chroot ${rootdir} toxid -u $MY_USERNAME -n data
|
||||||
|
chroot ${rootdir} chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
|
||||||
|
fi
|
||||||
|
else
|
||||||
if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
|
if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
|
||||||
toxid -u $MY_USERNAME -n data
|
toxid -u $MY_USERNAME -n data
|
||||||
chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
|
chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
function enable_tox_repo {
|
function enable_tox_repo {
|
||||||
|
|
Loading…
Reference in New Issue