Create directory for tox user

This commit is contained in:
Bob Mottram 2016-09-29 16:05:10 +01:00
parent d924dff596
commit a8cf1e9a84
1 changed files with 2 additions and 0 deletions

View File

@ -908,6 +908,8 @@ function sign_keys {
function run_tox_client {
# create a tox user
if [ ! -f /home/${USER}/.config/tox/data.tox ]; then
mkdir -p /home/${USER}/.config/tox
chown -R ${USER}:${USER} /home/${USER}/.config
toxid -u ${USER} -n data
fi
toxic -f /home/${USER}/.config/tox/data.tox --force-tcp --SOCKS5-proxy 127.0.0.1 9050