Actions
Bug #4789
closedBug #4766: check-rudder-agent does not adapt it's check rate to the agent frequency
check-rudder-agent fails on rudder-agent install due to a syntax error when computing run interval
Status:
Released
Priority:
1 (highest)
Assignee:
Jonathan CLARKE
Category:
System integration
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:
Description
Since #4766: rudder-agent cannot be installed on debian. This is due to a syntax error when computin run interval
CHECK_INTERVAL=`expr ${RUN_INTERVAL} * 2`
On some shell, particularly when installing on debian, the '*' is interpreted as a wildcard, which result in a syntax error:
Stderr from the command: stdin: is not a tty dpkg-preconfigure: unable to re-open stdin: expr: syntax error dpkg: error processing rudder-agent (--configure): subprocess installed post-installation script returned error exit status 2 configured to not write apport reports Errors were encountered while processing: rudder-agent E: Sub-process /usr/bin/dpkg returned an error code (1)
replacing by:
CHECK_INTERVAL=`expr ${RUN_INTERVAL} "*" 2`
should fix the issue
Actions