Action 1 (default)
Action Link Click
here to deploy the BES Client 7.0 upgrade.
Script Type
BigFix Action Script
download http://download.bigfix.com/download/bes/7/clients/BESAgent-7.0.2.103.x86_64_rhe4.rpm
continue if {(size of it = 3354105 AND sha1 of it = "a204e3a9e77dd3b5b1b921823e42518313165f72") of file "BESAgent-7.0.2.103.x86_64_rhe4.rpm" of folder "__Download"}
delete "/var/tmp/BESAgent-7.0.2.103.x86_64_rhe4.rpm"
move __Download/BESAgent-7.0.2.103.x86_64_rhe4.rpm "/var/tmp/BESAgent-7.0.2.103.x86_64_rhe4.rpm"
delete "{(client folder of current site as string) & "/__appendfile"}"
appendfile #!/bin/sh
appendfile /etc/init.d/BESClient-{preceding text of first "-" of (version of package "BESAgent" of rpm as string)} stop
appendfile /bin/rpm -U "/var/tmp/BESAgent-7.0.2.103.x86_64_rhe4.rpm"
appendfile /etc/init.d/BESClient-7.0.2.103 start
wait chmod 555 "{(client folder of current site as string) & "/__appendfile"}"
run "{(client folder of current site as string) & "/__appendfile"}"
Success Criteria
This action will be considered successful when the applicability relevance evaluates to false.