[24415] in Source-Commits
/svn/athena r24010 - trunk/debathena/scripts/installer
daemon@ATHENA.MIT.EDU (Geoffrey Thomas)
Sat Sep 19 13:29:26 2009
X-Barracuda-Envelope-From: geofft@mit.edu
Date: Sat, 19 Sep 2009 13:29:13 -0400
From: Geoffrey Thomas <geofft@MIT.EDU>
Message-Id: <200909191729.n8JHTDdV004053@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Author: geofft
Date: 2009-09-19 13:29:13 -0400 (Sat, 19 Sep 2009)
New Revision: 24010
Modified:
trunk/debathena/scripts/installer/install-debathena.sh
Log:
installer: Change the sudo recommendation heuristic to checking its existence.
Modified: trunk/debathena/scripts/installer/install-debathena.sh
===================================================================
--- trunk/debathena/scripts/installer/install-debathena.sh 2009-09-18 20:22:49 UTC (rev 24009)
+++ trunk/debathena/scripts/installer/install-debathena.sh 2009-09-19 17:29:13 UTC (rev 24010)
@@ -36,7 +36,7 @@
if [ `id -u` != "0" ]; then
error "You must run the Debathena installer as root."
- if dpkg -l ubuntu-desktop >/dev/null 2>&1; then
+ if [ -x /usr/bin/sudo ]; then
error "Try running 'sudo $0'."
fi
exit 1