summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTom Culliton <culliton@x2.(none)>2009-02-28 04:10:41 (GMT)
committerTom Culliton <culliton@x2.(none)>2009-02-28 04:10:41 (GMT)
commit6c79234ec48557423f59d62a6e00b00e0c140af4 (patch)
treec522df4ebbdf6d74fac8ddc4287f26c6b064018d
parent5bc6b96828aa91b7c49fb278da35628a599469cf (diff)
downloadlinhes_pkgbuild-6c79234ec48557423f59d62a6e00b00e0c140af4.zip
linhes_pkgbuild-6c79234ec48557423f59d62a6e00b00e0c140af4.tar.gz
linhes_pkgbuild-6c79234ec48557423f59d62a6e00b00e0c140af4.tar.bz2
Make the backup utilities check that they are being run by the root user
and quit with an obvious error message otherwise.
-rw-r--r--abs/core-testing/LinHES-system/bin/backupcommon3
1 files changed, 3 insertions, 0 deletions
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"