Project

General

Profile

Actions

Bug #4690

closed

User story #4595: Support for AIX (agent only)

RPM postinst fails on AIX due to use of "sed -i"

Added by Jonathan CLARKE over 10 years ago. Updated over 9 years ago.

Status:
Released
Priority:
2
Assignee:
Matthieu CERDA
Category:
Packaging
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

When installing Rudder on AIX we get this error:

sed: illegal option -- i
Usage:  sed [-n] [-u] Script [File ...]
        sed [-n] [-u] [-e Script] ... [-f Script_file] ... [File ...]
execution of rudder-agent-2.10.1.rc1.git201403271731-1.AIX.5.3 script failed, exit status 127

The use of "sed -i" in the RPM postinst is required for upgrades from 2.6 or earlier. Since we didn't support AIX on those versions, we don't need it. I'm just going to enclose it in a "if os != AIX" block.

Actions

Also available in: Atom PDF