Project

General

Profile

Actions

Bug #5198

closed

check-rudder-agent tries to use the stat command on AIX

Added by Matthieu CERDA almost 10 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

AIX has no stat command, only istat, without the same options.

We should add the following condition instead:

    if [ "z${OS_FAMILY}" = "zAIX" ]; then
      CF_LOCK_SIZE=`istat "${CFE_DIR}/state/cf_lock.tcdb" | grep Length | sed "s%^.*Length \([0-9]*\) bytes%\1%"`
    else
      CF_LOCK_SIZE=`stat -c%s "${CFE_DIR}/state/cf_lock.tcdb"`
    fi

Actions

Also available in: Atom PDF