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

Add TLS support and Line breaks to Nginx script #95

Closed
Closed
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Merge branch 'master' into Nginx-Script-LineBreaks

  • Loading branch information
Shwetajain148
Shwetajain148 committed Sep 6, 2017
commit 19e75ab0767220217b8694dd56d7faefcaab8fe3
@@ -116,13 +116,13 @@ checkNginxDetails()
{
#verify if nginx is installed as service
if [ -f /etc/init.d/$SERVICE ]; then
logMsgToConfigSysLog "INFO" "INFO: Nginx is present as a service."
elif [ -f /usr/lib/systemd/system/$SERVICE.service ]; then
logMsgToConfigSysLog "INFO" "INFO: Nginx is present as a service."
else
logMsgToConfigSysLog "ERROR" "ERROR: Nginx is not configured as a service"
exit 1
fi
logMsgToConfigSysLog "INFO" "INFO: Nginx is present as a service."
elif [[ $(which systemctl) && $(systemctl list-unit-files $SERVICE.service | grep "$SERVICE.service") ]] &>/dev/null; then
logMsgToConfigSysLog "INFO" "INFO: Nginx is present as a service."
else
logMsgToConfigSysLog "ERROR" "ERROR: Nginx is not configured as a service"
exit 1
fi

#get the version of nginx installed
getNginxVersion
You are viewing a condensed version of this merge commit. You can view the full changes here.
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.