]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
vstart: replace obsolescent egrep with grep -E 67114/head
authorKefu Chai <k.chai@proxmox.com>
Thu, 29 Jan 2026 05:48:47 +0000 (13:48 +0800)
committerKefu Chai <k.chai@proxmox.com>
Thu, 29 Jan 2026 07:17:17 +0000 (15:17 +0800)
The egrep command is deprecated in favor of grep -E. This change
eliminates the "egrep is obsolescent" warning when running vstart.sh.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/vstart.sh

index c9f768c5a8e23f7c1a51899f7353148d4cf127a5..fd8ab44c81cb7857fb45023950a41434bc8753f9 100755 (executable)
@@ -1662,7 +1662,7 @@ if [ -z "$CEPH_PORT" ]; then
     while [ true ]
     do
         CEPH_PORT="$(echo $(( RANDOM % 1000 + 40000 )))"
-        ss -a -n | egrep "\<LISTEN\>.+:${CEPH_PORT}\s+" 1>/dev/null 2>&1 || break
+        ss -a -n | grep -E "\<LISTEN\>.+:${CEPH_PORT}\s+" 1>/dev/null 2>&1 || break
     done
 fi