From aa2670f86e518faa5c4624c65282d261701d58c9 Mon Sep 17 00:00:00 2001
From: Bob Mottram <bob@robotics.uk.to>
Date: Mon, 21 Nov 2016 10:53:44 +0000
Subject: [PATCH] Allow root user

---
 src/freedombone-pass | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/freedombone-pass b/src/freedombone-pass
index 16437eaac..0cca78f37 100755
--- a/src/freedombone-pass
+++ b/src/freedombone-pass
@@ -146,8 +146,10 @@ if [ ! $CURR_USERNAME ]; then
 fi
 
 if [ ! -d /home/$CURR_USERNAME ]; then
-    echo $"Error: User $CURR_USERNAME does not exist"
-    exit 2
+    if [[ "$CURR_USERNAME" != "root" ]]; then
+        echo $"Error: User $CURR_USERNAME does not exist"
+        exit 2
+    fi
 fi
 
 if [ ${REMOVE_APP} ]; then
-- 
GitLab