lib/aws_ec2/scripts/cloudwatch.sh in aws-ec2-1.4.0 vs lib/aws_ec2/scripts/cloudwatch.sh in aws-ec2-1.4.1
- old
+ new
@@ -11,11 +11,11 @@
LOG_GROUP_NAME=$1
# shellcheck disable=SC1091
source "/opt/aws-ec2/shared/functions.sh"
OS=$(os_name)
-if [ "$OS" != "amazonlinux2" ] || [ "$OS" != "ubuntu" ] ; then
- echo "Sorry, enable cloudwatch logging with the aws-ec2 tool is only supported for amazonlinux2 and ubuntu"
+if [ "$OS" != "amazonlinux2" ] && [ "$OS" != "ubuntu" ] ; then
+ echo "Sorry, cloudwatch logging with the aws-ec2 tool is supported for amazonlinux2 and ubuntu only"
exit
fi
export OS # used by the scripts to delegate to the right OS script
/opt/aws-ec2/cloudwatch/install.sh