diff --git a/Linux Script/configure-linux.sh b/Linux Script/configure-linux.sh index ecb5b60..31187c3 100644 --- a/Linux Script/configure-linux.sh +++ b/Linux Script/configure-linux.sh @@ -75,6 +75,10 @@ LOGGLY_PASSWORD= #if this variable is set to true then suppress all prompts SUPPRESS_PROMPT="false" +#if this variable is "true", we are in unattended mode: no remote tests are run +#and only account and token are required. +UNATTENDED_MODE="false" + #variables used in 22-loggly.conf file LOGGLY_SYSLOG_PORT=6514 LOGGLY_DISTRIBUTION_ID="41058" @@ -124,17 +128,22 @@ checkLinuxLogglyCompatibility() { #set the basic variables needed by this script setLinuxVariables - #check if the Loggly servers are accessible. If no, ask user to check network connectivity & exit - checkIfLogglyServersAccessible + # in unattended mode, we don't do remote checks + if [ "$UNATTENDED_MODE" != "true" ]; then + + #check if the Loggly servers are accessible. If no, ask user to check network connectivity & exit + checkIfLogglyServersAccessible + + #check if user credentials are valid. If no, then exit + checkIfValidUserNamePassword - #check if user credentials are valid. If no, then exit - checkIfValidUserNamePassword + #get authentication token if not provided + getAuthToken - #get authentication token if not provided - getAuthToken + #check if authentication token is valid. If no, then exit. + checkIfValidAuthToken - #check if authentication token is valid. If no, then exit. - checkIfValidAuthToken + fi #checking if syslog-ng is configured as a service checkifSyslogNgConfiguredAsService @@ -987,6 +996,7 @@ checkScriptRunningMode() { usage() { cat <