git://git.onelab.eu
/
myplc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c433983
)
Allow build as root (eww)
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Mon, 13 Aug 2007 18:59:04 +0000
(18:59 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Mon, 13 Aug 2007 18:59:04 +0000
(18:59 +0000)
build_devel.sh
patch
|
blob
|
history
diff --git
a/build_devel.sh
b/build_devel.sh
index
f3da644
..
077dbdb
100755
(executable)
--- a/
build_devel.sh
+++ b/
build_devel.sh
@@
-15,7
+15,7
@@
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: build_devel.sh,v 1.
7 2007/01/12 14:48:02
mlhuang Exp $
+# $Id: build_devel.sh,v 1.
8 2007/01/20 04:02:43
mlhuang Exp $
#
. build.functions
#
. build.functions
@@
-68,10
+68,9
@@
echo "* myplc-devel: Adding build user"
uid=${SUDO_UID:-2000}
gid=${SUDO_GID:-2000}
if ! grep -q "Automated Build" devel/root/etc/passwd ; then
uid=${SUDO_UID:-2000}
gid=${SUDO_GID:-2000}
if ! grep -q "Automated Build" devel/root/etc/passwd ; then
- chroot devel/root <<EOF
-groupadd -g $gid build
-useradd -c "Automated Build" -u $uid -g $gid -n -d /data/build -M -s /bin/bash build
-EOF
+ chroot devel/root sh -c "groupadd -o -g $gid build; \
+useradd -o -c 'Automated Build' -u $uid -g $gid -n -d /data/build -M -s /bin/bash build; \
+exit 0"
fi
# Copy build scripts to build home directory
fi
# Copy build scripts to build home directory