Skip to content

Commit

Permalink
remove download and check of md5sum
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Lange committed Sep 9, 2015
1 parent 0b1f2f9 commit eabd17e
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions lib/get-config-dir-http
Expand Up @@ -31,24 +31,11 @@ cd $fdir
file=${FAI_CONFIG_SRC##*/}
base=${file%%.*}

# get md5sum first
if wget -q -t5 -O $fdir/$file.md5 ${FAI_CONFIG_SRC}.md5; then
echo "Checksum file $file.md5 successfully downloaded."
else
echo "Checksum file ${FAI_CONFIG_SRC}.md5 failed to download. Aborting." >&2
task_error 881
fi

# now download tarball of config space
echo -n "Getting configuration space tarball from $FAI_CONFIG_SRC ..."
wget -q -t 3 $FAI_CONFIG_SRC && echo "done"
wget -q -t 5 $FAI_CONFIG_SRC && echo "done"
task_error 882 $?

# check the md5 sum
echo -n "MD5 checksum of "
md5sum -c $file.md5 || echo "checksum mismatch. ERROR." >&2
task_error 883 $?

# extraxt the downloaded file using ftar. Therefore define a class
# with the basename of the file
echo "Extracting config space from $file"
Expand Down

0 comments on commit eabd17e

Please sign in to comment.