Ownership of toc profile

This commit is contained in:
Bob Mottram 2016-07-29 19:15:45 +01:00
parent 6b9b9fceb5
commit 9d5e13a3c1
2 changed files with 5 additions and 1 deletions

View File

@ -593,7 +593,10 @@ function mesh_tox_client {
echo $"Toxic client compile $(($duration / 60)) minutes and $(($duration % 60)) seconds elapsed."
# create a tox user
toxid -u $MY_USERNAME -n data
if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
toxid -u $MY_USERNAME -n data
chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
fi
}
function enable_tox_repo {

View File

@ -447,6 +447,7 @@ function configure_toxcore {
function create_tox_user {
if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
toxid -u $MY_USERNAME -n data
chown -R ${MY_USERNAME}:${MY_USERNAME} /home/${MY_USERNAME}/.config
fi
}