Browse Source

Allow root user

Bob Mottram 8 years ago
parent
commit
aa2670f86e
1 changed files with 4 additions and 2 deletions
  1. 4
    2
      src/freedombone-pass

+ 4
- 2
src/freedombone-pass View File

@@ -146,8 +146,10 @@ if [ ! $CURR_USERNAME ]; then
146 146
 fi
147 147
 
148 148
 if [ ! -d /home/$CURR_USERNAME ]; then
149
-    echo $"Error: User $CURR_USERNAME does not exist"
150
-    exit 2
149
+    if [[ "$CURR_USERNAME" != "root" ]]; then
150
+        echo $"Error: User $CURR_USERNAME does not exist"
151
+        exit 2
152
+    fi
151 153
 fi
152 154
 
153 155
 if [ ${REMOVE_APP} ]; then