From 359a410123eb803cace829c04328006bd335094a Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Fri, 29 Jul 2016 18:59:19 +0100
Subject: [PATCH] Create tox user

---
 src/freedombone-image-mesh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/freedombone-image-mesh b/src/freedombone-image-mesh
index 6da521761..ed493bc64 100755
--- a/src/freedombone-image-mesh
+++ b/src/freedombone-image-mesh
@@ -444,6 +444,12 @@ function configure_toxcore {
 	echo $'Configured toxcore' >> $INSTALL_LOG
 }
 
+function create_tox_user {
+	if [ ! -f /home/${MY_USERNAME}/.config/tox/data.tox ]; then
+		toxid -u $MY_USERNAME -n data
+	fi
+}
+
 function disable_password_logins {
 	if [ ! -d /home/$DEFAULT_USERNAME ]; then
 		echo $"Home directory for $DEFAULT_USERNAME not found"
@@ -682,6 +688,7 @@ if [ -f $MESH_INSTALL_SETUP ]; then
 	configure_zeronet_forum
 	configure_zeronet_id
 	configure_toxcore
+	create_tox_user
 	configure_zeronet
 	disable_password_logins
 	disable_screen_lock
-- 
GitLab