From 6c79234ec48557423f59d62a6e00b00e0c140af4 Mon Sep 17 00:00:00 2001
From: Tom Culliton <culliton@x2.(none)>
Date: Fri, 27 Feb 2009 23:10:41 -0500
Subject: Make the backup utilities check that they are being run by the root
 user and quit with an obvious error message otherwise.

---
 abs/core-testing/LinHES-system/bin/backupcommon | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/abs/core-testing/LinHES-system/bin/backupcommon b/abs/core-testing/LinHES-system/bin/backupcommon
index 39a62e9..3491b2a 100644
--- a/abs/core-testing/LinHES-system/bin/backupcommon
+++ b/abs/core-testing/LinHES-system/bin/backupcommon
@@ -5,6 +5,9 @@
     exit 1
 }
 
+# You need to be root at least via sudo for the backup utilities to work.
+must_be_root
+
 #----------------------------------------------------------------------------
 DATABASE="mythconverg"
 DATABASE_DIR="/data/srv/mysql/$DATABASE"
-- 
cgit v0.12