[DebianGIS-dev] r997 - packages/debian-gis

pere at alioth.debian.org pere at alioth.debian.org
Sat Aug 4 09:53:42 UTC 2007


Author: pere
Date: 2007-08-04 09:53:42 +0000 (Sat, 04 Aug 2007)
New Revision: 997

Modified:
   packages/debian-gis/build-gis-live
Log:
Improve sudo handling.

Modified: packages/debian-gis/build-gis-live
===================================================================
--- packages/debian-gis/build-gis-live	2007-08-04 07:52:12 UTC (rev 996)
+++ packages/debian-gis/build-gis-live	2007-08-04 09:53:42 UTC (rev 997)
@@ -21,11 +21,14 @@
 # Update scripts from svn during the build?
 UPDATESVN=false
 
-#SUDO=sudo
-
 # Where to fetch the base system
 mirror=ftp://ftp.no.debian.org/debian/
 
+# Some steps need to run as root. Use sudo unless already root
+if [ root != "$(whoami)" ] ; then
+    SUDO=sudo
+fi
+
 BUILD_DIR="$(dirname $0)"
 
 msg_info() {




More information about the Pkg-grass-devel mailing list