]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart.sh: sudo radosgw for low port numbers
authorSage Weil <sage@redhat.com>
Wed, 3 Jun 2015 19:48:11 +0000 (12:48 -0700)
committerSage Weil <sage@redhat.com>
Wed, 3 Jun 2015 23:17:50 +0000 (16:17 -0700)
Signed-off-by: Sage Weil <sage@redhat.com>
src/vstart.sh

index ab1887caab15bfc82195769cd12dc74368deec94..1ff76f0bd055e2d2b4d454873c31aa2be160cfdd 100755 (executable)
@@ -641,7 +641,10 @@ do_rgw()
     if [ "$debug" -ne 0 ]; then
         RGWDEBUG="--debug-rgw=20"
     fi
-    $CEPH_BIN/radosgw --log-file=${CEPH_OUT_DIR}/rgw.log ${RGWDEBUG} --debug-ms=1
+
+    RGWSUDO=
+    [ $CEPH_RGW_PORT -lt 1024 ] && RGWSUDO=sudo
+    $RGWSUDO $CEPH_BIN/radosgw --log-file=${CEPH_OUT_DIR}/rgw.log ${RGWDEBUG} --debug-ms=1
 
     # Create S3 user
     local akey='0555b35654ad1656d804'