egrep is obsolete
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 15 Dec 2023 13:03:56 +0000 (14:03 +0100)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Fri, 15 Dec 2023 13:03:56 +0000 (14:03 +0100)
plc.d/postgresql

index 3d7dc71..b61bf06 100755 (executable)
@@ -59,7 +59,7 @@ case "$1" in
         touch $postgresql_sysconfig
         tmp=${postgresql_sysconfig}.new
         # remove any previous definitions and write ours
-        ( egrep -v '^(PGDATA=|PGLOG=|PGPORT=)' $postgresql_sysconfig
+        ( grep -v -E '^(PGDATA=|PGLOG=|PGPORT=)' $postgresql_sysconfig
             echo "PGDATA=$PGDATA"
             echo "PGLOG=/var/log/pgsql"
             echo "PGPORT=$PLC_DB_PORT"