mirror of
https://bitbucket.org/shim_/docker-rtm.git
synced 2018-10-04 01:52:08 +02:00
use cached installr
This commit is contained in:
parent
ccc76bf687
commit
5b1b429f4d
14
init.sh
14
init.sh
@ -10,9 +10,7 @@ function report_loop {
|
||||
done
|
||||
}
|
||||
|
||||
if [ -f "$BINARY" ]; then
|
||||
report_loop
|
||||
else
|
||||
function fetch_installer {
|
||||
curl "$RTM_DOWNLOAD_URL$RTM_VERSION" > $INSTALLER
|
||||
CHECKSUM=$(sha256sum $INSTALLER)
|
||||
if [ "$CHECKSUM" -eq "$RTM_INSTALLER_CHECKSUM $INSTALLER" ]; then
|
||||
@ -23,4 +21,14 @@ else
|
||||
echo Checksum mismatch!
|
||||
exit 1
|
||||
fi
|
||||
}
|
||||
|
||||
if [ -f "$BINARY" ]; then
|
||||
report_loop
|
||||
else
|
||||
if [ -f "$INSTALLER" ]; then
|
||||
$INSTALLER
|
||||
else
|
||||
fetch_installer
|
||||
fi
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user