Ownership of toc profile
This commit is contained in:
parent
6b9b9fceb5
commit
9d5e13a3c1
|
@ -593,7 +593,10 @@ 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
|
||||||
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 {
|
function enable_tox_repo {
|
||||||
|
|
|
@ -447,6 +447,7 @@ function configure_toxcore {
|
||||||
function create_tox_user {
|
function create_tox_user {
|
||||||
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
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue