diff options
author | Tom Culliton <culliton@x2.(none)> | 2009-02-28 04:10:41 (GMT) |
---|---|---|
committer | Tom Culliton <culliton@x2.(none)> | 2009-02-28 04:10:41 (GMT) |
commit | 6c79234ec48557423f59d62a6e00b00e0c140af4 (patch) | |
tree | c522df4ebbdf6d74fac8ddc4287f26c6b064018d /abs/core-testing/LinHES-system/bin/backupcommon | |
parent | 5bc6b96828aa91b7c49fb278da35628a599469cf (diff) | |
download | linhes_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.
Diffstat (limited to 'abs/core-testing/LinHES-system/bin/backupcommon')
-rw-r--r-- | abs/core-testing/LinHES-system/bin/backupcommon | 3 |
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" |