3 # ------------------------------------------------------------
4 # download initial VM for
8 # (C)opyright 2014, AIT Austrian Instiitute of Technology
9 # ------------------------------------------------------------
11 # ------------------------------------------------------------
15 # download the ionitial OsecVM.ova from the X-Net servers
16 # and place the file in the folder specified by ${1}
19 # ------------------------------
23 # check if we do have elevated rights
24 # that is "Run as Administrator" invocation
25 id -G | grep 544 &> /dev/null
26 if [ "${?}" != 0 ]; then
27 echo "Insufficient privileges. Is this script executed with 'Run As Administrator'?"
28 echo "I'll try anyway..."
32 echo "fetching OpenSecurity initial VM at " $(date)
33 echo "target folder: ${TARGET_FOLDER}"
36 mkdir -p "${TARGET_FOLDER}"
37 if [ ! -d "${TARGET_FOLDER}" ]; then
38 echo "failed to access target folder."
43 URL="http://service.x-net.at/opensecurity/OsecVM_latest.ova"
44 wget --progress=dot:mega ${URL} -O "${TARGET_FOLDER}"/OsecVM.ova