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

added function to check all dependencies #102

Merged
merged 5 commits into from Oct 10, 2017

Conversation

@Shwetajain148
Copy link
Contributor

@Shwetajain148 Shwetajain148 commented Aug 31, 2017

@mchaudhary @mostlyjason In this PR, I have added a new function that will check if the required dependencies to run the script are not installed. I also did some refactoring work like function name changes etc. Please review.

@@ -945,7 +948,7 @@ checkIfTLS()
esac
done
else
logMsgToConfigSysLog "WARN" "WARN: Your system logs are being send insecurely. We prefer to send system logs securely so switching to secure configuration."
logMsgToConfigSysLog "WARN" "WARN: Your system logs are being sent insecurely. We prefer to send the system logs securely so switching to the secure configuration."

This comment has been minimized.

@mostlyjason

mostlyjason Sep 1, 2017
Contributor

@Shwetajain148 what conditions cause this message to be displayed?

This comment has been minimized.

@Shwetajain148

Shwetajain148 Sep 4, 2017
Author Contributor

@mostlyjason, This is the else part of the same checkIfTLS function and this message will be displayed if the suppress mode is on. It means whenever the user will run the script in insecure mode with the suppress flag then the script will not ask to switch to secure mode instead will copy the secure configuration by default.

This comment has been minimized.

@mostlyjason

mostlyjason Sep 5, 2017
Contributor

The problem seems unclear to me can you remove this change and put in a separate JIRA issue?

@@ -932,7 +935,7 @@ checkIfTLS()
if [ "$SUPPRESS_PROMPT" == "false" ]; then
while true;
do
read -p "Hey you are going to setup system logs in insecure mode. Do you want to overwrite this with secure mode? (yes/no)" yn
read -p "Hey, you are going to setup the system logs in insecure mode. Do you want to overwrite this with secure mode? (yes/no)" yn

This comment has been minimized.

@mostlyjason

mostlyjason Sep 1, 2017
Contributor

@Shwetajain148 what conditions cause this message to be displayed?

This comment has been minimized.

@Shwetajain148

Shwetajain148 Sep 4, 2017
Author Contributor

@mostlyjason, This prompt will occur whenever the user will run the script in insecure mode or the script is going to set the NON-TLS configuration i.e. port 514.

If the user enter yes then it means he wants to setup secure logging so the TLS configurations will be copied i.e. port 6514 otherwise the insecure configurations will be copied i.e. port 514 on entering no.

This comment has been minimized.

@mostlyjason

mostlyjason Sep 5, 2017
Contributor

The problem seems unclear to me can you remove this change and put in a separate JIRA issue?

@mchaudhary mchaudhary merged commit ef45821 into loggly:master Oct 10, 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.