From fad36b583db757c9e4dbff37c41e0cdee4c933fb Mon Sep 17 00:00:00 2001 From: Nochum Sossonko Date: Tue, 3 May 2016 09:00:43 -0400 Subject: [PATCH] move prereq check after cron primer is loaded --- ec2-automate-backup/ec2-automate-backup.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/ec2-automate-backup/ec2-automate-backup.sh b/ec2-automate-backup/ec2-automate-backup.sh index 2886db7..945cd40 100755 --- a/ec2-automate-backup/ec2-automate-backup.sh +++ b/ec2-automate-backup/ec2-automate-backup.sh @@ -133,10 +133,6 @@ purge_EBS_Snapshots() { done } -#calls prerequisitecheck function to ensure that all executables required for script execution are available -prerequisite_check - -app_name=$(basename $0) #sets defaults selection_method="volumeid" #date_binary allows a user to set the "date" binary that is installed on their system and, therefore, the options that will be given to the date binary to perform date calculations @@ -176,6 +172,11 @@ if [[ -n $cron_primer ]]; then fi fi +#calls prerequisitecheck function to ensure that all executables required for script execution are available +prerequisite_check + +app_name=$(basename $0) + #if region is not set then: if [[ -z $region ]]; then #if the environment variable $EC2_REGION is not set set to us-east-1