Browse Source

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

Bob Mottram 7 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,6 +1269,9 @@ function security_settings {
1269 1269
 }
1270 1270
 
1271 1271
 function show_tripwire_verification_code {
1272
+    if [ ! -f /var/lib/tripwire/${HOSTNAME}.twd ]; then
1273
+        return
1274
+    fi
1272 1275
     clear
1273 1276
     echo ''
1274 1277
     echo $'Tripwire Verification Code'