Browse Source

Don't show tripwire code if database file doesn't exist

Bob Mottram 8 years ago
parent
commit
61d555737e
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/freedombone-controlpanel

+ 3
- 0
src/freedombone-controlpanel View File

1269
 }
1269
 }
1270
 
1270
 
1271
 function show_tripwire_verification_code {
1271
 function show_tripwire_verification_code {
1272
+    if [ ! -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
1273
+        return
1274
+    fi
1272
     clear
1275
     clear
1273
     echo ''
1276
     echo ''
1274
     echo $'Tripwire Verification Code'
1277
     echo $'Tripwire Verification Code'