Fixing broken copy of BMRA host_vars
[kuberef.git] / deploy.sh
index 4ecd6c6..78e2978 100755 (executable)
--- a/deploy.sh
+++ b/deploy.sh
@@ -16,12 +16,19 @@ set -o nounset
 # Please refer to README for detailed information.
 
 # Get path information
-DIRECTORY=$(readlink -f $0)
-CURRENTPATH=$(dirname $DIRECTORY)
+DIRECTORY=$(readlink -f "$0")
+CURRENTPATH=$(dirname "$DIRECTORY")
 
 # Source env variables & functions
-source $CURRENTPATH/deploy.env
-source $CURRENTPATH/functions.sh
+# shellcheck source=./deploy.env
+source "$CURRENTPATH/deploy.env"
+# shellcheck source=./functions.sh
+source "$CURRENTPATH/functions.sh"
+
+# ---------------------------------------------------------------------
+# check installation and runtime prerequisites
+# ---------------------------------------------------------------------
+check_prerequisites
 
 # Clean up leftovers
 clean_up
@@ -33,9 +40,6 @@ clean_up
 create_jump
 setup_PXE_network
 
-# Get IP of the jumphost VM
-get_vm_ip
-
 # Copy files needed by Infra engine & BMRA in the jumphost VM
 copy_files_jump