Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Optionally use RUNAS_GID to runas command to set group to setregid() to.
[fs/lustre-release.git]
/
lustre
/
tests
/
replay-sanity.sh
diff --git
a/lustre/tests/replay-sanity.sh
b/lustre/tests/replay-sanity.sh
index
73d228f
..
5350438
100755
(executable)
--- a/
lustre/tests/replay-sanity.sh
+++ b/
lustre/tests/replay-sanity.sh
@@
-102,7
+102,11
@@
if [ $UID -ne 0 ]; then
RUNAS=""
else
RUNAS_ID=${RUNAS_ID:-500}
- RUNAS=${RUNAS:-"runas -u $RUNAS_ID"}
+ if [ -z "$RUNAS_GID" ]; then
+ RUNAS=${RUNAS:-"runas -u $RUNAS_ID"}
+ else
+ RUNAS=${RUNAS:-"runas -u $RUNAS_ID -g $RUNAS_GID"}
+ fi
fi
OLDTMPDIR=$TMPDIR