mirror of
https://github.com/ceph/ceph
synced 2025-01-11 21:50:26 +00:00
qa/workunits/objectstore/test_fuse.sh: fix root check
$EUID not defined everywhere. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
300b15d5ad
commit
15ea140b3b
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -ex
|
||||
|
||||
if [ $EUID -ne 0 ]; then
|
||||
if ! id -u | grep -q '^0$'; then
|
||||
echo "not root, re-running self via sudo"
|
||||
sudo PATH=$PATH $0 || echo FAIL
|
||||
exit 0
|
||||
|
Loading…
Reference in New Issue
Block a user