Ver código fonte

Allow password storage for root

So that local database backups are unaffected
Bob Mottram 8 anos atrás
pai
commit
ba3be6aab5
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3
    1
      src/freedombone-pass

+ 3
- 1
src/freedombone-pass Ver arquivo

@@ -247,7 +247,9 @@ if [ ${#CURR_PASSWORD} -eq 0 ]; then
247 247
 else
248 248
     # store password
249 249
     if [ -f $NO_PASSWORD_STORE_FILE ]; then
250
-        exit 0
250
+        if [[ "$CURR_USERNAME" != 'root' ]]; then
251
+            exit 0
252
+        fi
251 253
     fi
252 254
     if [ ! -d ~/.passwords/$CURR_USERNAME ]; then
253 255
         mkdir -p ~/.passwords/$CURR_USERNAME