summaryrefslogtreecommitdiff
path: root/scripts/install
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2014-01-18 01:25:11 +0100
committerDaniil Baturin <daniil@baturin.org>2014-01-18 01:25:11 +0100
commite12febac0a2f8b3533c45b867026b286d96a2039 (patch)
tree45af1e5ec7773acf095658faa49a48025b77abaf /scripts/install
parent83d1bab6698bdcc191765d65d115ae453ffb0c3a (diff)
downloadvyatta-cfg-system-e12febac0a2f8b3533c45b867026b286d96a2039.tar.gz
vyatta-cfg-system-e12febac0a2f8b3533c45b867026b286d96a2039.zip
Bug #98: add an option for redirect support to curl call.
Diffstat (limited to 'scripts/install')
-rwxr-xr-xscripts/install/install-image4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/install/install-image b/scripts/install/install-image
index 3d668d21..f1f64dc2 100755
--- a/scripts/install/install-image
+++ b/scripts/install/install-image
@@ -66,7 +66,7 @@ fetch_iso_by_url ()
vyos_version=`dpkg-query --showformat='${Version}' --show vyatta-version`
filename="${TEMP_DIR}/${NEW_ISO##*/}"
- curl -H "User-Agent: VyOS/$vyos_version" $auth -f -o $filename $NEW_ISO
+ curl -L -H "User-Agent: VyOS/$vyos_version" $auth -f -o $filename $NEW_ISO
curlerror=$?
if [ $curlerror -eq 51 ]; then
host=${NEW_ISO##scp://}
@@ -102,7 +102,7 @@ fetch_iso_by_url ()
echo "ISO download succeeded."
echo "Checking for digital signature file..."
- curl -H "User-Agent: VyOS/$vyos_version" $auth -f -o ${filename}.asc ${NEW_ISO}.asc
+ curl -L -H "User-Agent: VyOS/$vyos_version" $auth -f -o ${filename}.asc ${NEW_ISO}.asc
if [ $? -ne 0 ]; then
echo "Unable to fetch digital signature file."
echo -n "Do you want to continue without signature check? (yes/no) [yes] "