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