Trying to install tanuki service on Amazon AMI, normally it was detected as generic Linux:
Detected Linux:
But if with the package redhat-lsb-core-4.0-7.14.amzn1.x86_64 installed:
sudo yum install -y redhat-lsb-core-4.0-7.14.amzn1.x86_64
since a file /etc/lsb-release will be created, the OS is detected as Ubuntu now and install with init.d failed:
Detected Ubuntu or Debian:
Installing the SumoLogic Collector daemon using init.d..
./collector: line 1822: update-rc.d: command not found
Thank you for reporting this issue.
Could you try updating your shell script to test if the update-rc.d command exists before falling into the "Ubuntu - Debian" case?
Please replace
by
(3 places in the shell scripts).
Please let me know if this fix your issue.
Best Regards,
Maxime
Last edit: Maxime Andrighetto 2018-03-16
Thanks for your reply.
I get what you means but the line I'm using is
And it works.
By looking your line I guess the format ate your left quote marks
I think this fix is good enough. Our customer suggested consider the Amazon AMI is widely used today, it's better do a more initiative detection for it other than fall it into "other Linux".
Anyway. Thanks a lot for your quick response
This is fixed in version 3.5.35. Please check the release notes for details:
https://wrapper.tanukisoftware.com/doc/english/release-notes.html
Regards,
Maxime