Bug #5198
closed
check-rudder-agent tries to use the stat command on AIX
Added by Matthieu CERDA about 10 years ago.
Updated over 9 years ago.
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
- Target version set to 2.6.17
- Target version changed from 2.6.17 to 2.10.4
AIX support is only here since 2.10, retargetting.
- Status changed from 8 to Pending technical review
- Assignee changed from Matthieu CERDA to Jonathan CLARKE
- % Done changed from 0 to 100
- Pull Request set to https://github.com/Normation/rudder-packages/pull/428
- Status changed from Pending technical review to Pending release
Applied in changeset commit:717bd575e7cbfd53eb7124c7c211046afb34ba0e.
Applied in changeset commit:bfd08942f77bf803be4f67547dd6839c2fd1f472.
- Status changed from Pending release to Released
- Project changed from 34 to Rudder
- Category set to Packaging
Also available in: Atom
PDF