diff -r d7ef04254e9c -r 7310daa5a362 OpenSecurity/bin/download_initial_image.sh --- a/OpenSecurity/bin/download_initial_image.sh Wed Oct 29 15:18:22 2014 +0100 +++ b/OpenSecurity/bin/download_initial_image.sh Fri Nov 28 15:52:36 2014 +0100 @@ -67,7 +67,12 @@ fi # start download -URL="http://service.x-net.at/opensecurity/OsecVM_latest.ova" +URL=$(cat /proc/registry64/HKEY_LOCAL_MACHINE/SOFTWARE/OpenSecurity/ImageUrl) +if [ $? != "0" ]; then + echo "no URL given at HKEY_LOCAL_MACHINE/SOFTWARE/OpenSecurity/ImageUrl" + echo "don't know where to look" + exit 1 +fi wget --progress=dot:mega ${URL} -O "${TARGET_FOLDER}"/OsecVM.ova