From a8cf1e9a8433b4517e8b97dbab833c42f0b1228e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 29 Sep 2016 16:05:10 +0100 Subject: [PATCH] Create directory for tox user --- src/freedombone-controlpanel-user | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/freedombone-controlpanel-user b/src/freedombone-controlpanel-user index 8bf86135..2c0be65c 100755 --- a/src/freedombone-controlpanel-user +++ b/src/freedombone-controlpanel-user @@ -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