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

Tested script with RPM-based and Debian-based Distributions #94

Merged
merged 7 commits into from Jun 1, 2017

Conversation

@Shwetajain148
Copy link
Contributor

@Shwetajain148 Shwetajain148 commented May 16, 2017

I have tested the script on below environments:

-Amazon AMI
-Redhat
-CentOS
-Ubuntu

The old script had an issue with Redhat environment. The $LINUX_DIST variable gets "red" for redhat environment so old script shows a warning. So I fixed this issue as well.

Refer the change below:

https://github.com/loggly/install-script/compare/master...Shwetajain148:Modified-LinuxScript?expand=1#diff-fcb43b5e6da2f59da41dc1549eb0fdf9R223

Now the script is working fine in each environment. Please review.

root and others added 3 commits May 16, 2017
Update the error message for the case when rsyslog-gnutls package could not be downloaded automatically.
echo "INFO: Operating system is Red Hat."
PKG_MGR="yum"

This comment has been minimized.

@mostlyjason

mostlyjason May 19, 2017
Contributor

I'm surprised you don't just check for the presence of the yum command, instead of trying to hardcode it based on the distribution. I was just thinking it might be more flexible to different distribution names if you checked for the executable. If this way works you can keep it though unless @mchaudhary has any comment.

This comment has been minimized.

@Shwetajain148

Shwetajain148 May 25, 2017
Author Contributor

@mostlyjason, Usually, yum and apt-get package managers are already present on the respective systems. For safer side, I am working on to implement conditions to check for the presence of yum and apt-get commands then I will set the PKG_MGR accordingly. If yum or apt-get would not already present in the system then I will show an error message to install yum or apt-get and then exit the script execution.

@Shwetajain148 Shwetajain148 force-pushed the Shwetajain148:Modified-LinuxScript branch from f949480 to 734c590 May 30, 2017
@mchaudhary mchaudhary merged commit e32787f into loggly:master Jun 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.