OpenSecurity/bin/download_initial_image.sh
changeset 250 7310daa5a362
parent 240 d7ef04254e9c
     1.1 --- a/OpenSecurity/bin/download_initial_image.sh	Wed Oct 29 15:18:22 2014 +0100
     1.2 +++ b/OpenSecurity/bin/download_initial_image.sh	Fri Nov 28 15:52:36 2014 +0100
     1.3 @@ -67,7 +67,12 @@
     1.4  fi
     1.5  
     1.6  # start download
     1.7 -URL="http://service.x-net.at/opensecurity/OsecVM_latest.ova"
     1.8 +URL=$(cat /proc/registry64/HKEY_LOCAL_MACHINE/SOFTWARE/OpenSecurity/ImageUrl)
     1.9 +if [ $? != "0" ]; then
    1.10 +    echo "no URL given at HKEY_LOCAL_MACHINE/SOFTWARE/OpenSecurity/ImageUrl"
    1.11 +    echo "don't know where to look"
    1.12 +    exit 1
    1.13 +fi
    1.14  wget --progress=dot:mega ${URL} -O "${TARGET_FOLDER}"/OsecVM.ova
    1.15  
    1.16