diff --git a/.ebextensions/falcon_crowdstrike.config b/.ebextensions/falcon_crowdstrike.config index faed775d..3ca7d137 100644 --- a/.ebextensions/falcon_crowdstrike.config +++ b/.ebextensions/falcon_crowdstrike.config @@ -8,10 +8,12 @@ files: . /opt/elasticbeanstalk/support/envvars cd /home/ec2-user yum -q list installed falcon-sensor &> /dev/null && isInstalled="yes" || isInstalled="no" - if [ $isInstalled == "no" ]; then - wget https://s3.amazonaws.com/nypl-rpms/falcon-sensor-6.33.0-13003.el6.x86_64.rpm - yum -y install /home/ec2-user/falcon-sensor-6.33.0-13003.el6.x86_64.rpm - /opt/CrowdStrike/falconctl -s --cid=2F323D2F1EF049D0BCE9A15DDC55D946-19 + if [ $isInstalled == "yes" ]; then + sudo service falcon-sensor stop + sudo yum -y remove falcon-sensor fi + wget https://s3.amazonaws.com/nypl-rpms/falcon-sensor-latest.amzn1.x86_64.rpm + yum -y install /home/ec2-user/falcon-sensor-latest.amzn1.x86_64.rpm + /opt/CrowdStrike/falconctl -s --cid=2F323D2F1EF049D0BCE9A15DDC55D946-19 sudo service falcon-sensor start - encoding: plain \ No newline at end of file + encoding: plain