Browse Source

TT#24097 Use «grep -E» instead of deprecated egrep

Change-Id: Ia4d51ece3aba31777f62c92897d4e7c207e6d07c
changes/24/16724/6
Guillem Jover 8 years ago
parent
commit
376df64d80
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      debian/ngcp-rtpengine-recording-daemon.init

+ 1
- 1
debian/ngcp-rtpengine-recording-daemon.init View File

@ -96,7 +96,7 @@ case "$1" in
log_daemon_msg "Starting $DESC: $NAME" log_daemon_msg "Starting $DESC: $NAME"
if [ "$MUST_NFS" = yes ]; then if [ "$MUST_NFS" = yes ]; then
if ! egrep -q '^[^ :]+:[^ :]+ '"$NFS_LOCAL_MOUNT"' nfs.? ' /proc/mounts; then
if ! grep -E -q '^[^ :]+:[^ :]+ '"$NFS_LOCAL_MOUNT"' nfs.? ' /proc/mounts; then
log_progress_msg "Mounting NFS share" log_progress_msg "Mounting NFS share"
test -d "$NFS_LOCAL_MOUNT" || mkdir -p "$NFS_LOCAL_MOUNT" test -d "$NFS_LOCAL_MOUNT" || mkdir -p "$NFS_LOCAL_MOUNT"
mount -t nfs -o "$NFS_OPTIONS" "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT" mount -t nfs -o "$NFS_OPTIONS" "$NFS_HOST":"$NFS_REMOTE_PATH" "$NFS_LOCAL_MOUNT"


Loading…
Cancel
Save