Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #6769: check-rudder-agent correction doesn't work on AIX #688

Conversation

peckpeck
Copy link
Member

@@ -244,10 +244,14 @@ fi

# if file is absent or empty there have been a problem with update
base="/var/rudder/cfengine-community/inputs"
if [ ! -f "${base}/common/1.0/update.cf" ] || [ $(stat -c "%s" "${base}/common/1.0/update.cf") = 0 ] || [ ! -f "${base}/failsafe.cf" ] || [ $(stat -c "%s" "${base}/failsafe.cf") = 0 ] || [ ! -f "${base}/promises.cf" ] || [ $(stat -c "%s" "${base}/promises.cf") = 0 ]
empty() {
[ ! -f "$1" ] || [ $(du "$1" | awk '{print $1}') = "0" ]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no way i can review that ... @Kegeruneku i need your advice

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking at it :)

@Kegeruneku
Copy link

OK !

Kegeruneku pushed a commit that referenced this pull request Jun 25, 2015
…rection_doesn_t_work_on_aix

Fixes #6769: check-rudder-agent correction doesn't work on AIX
@Kegeruneku Kegeruneku merged commit 261083d into Normation:branches/rudder/2.10 Jun 25, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants