#!/bin/bash
function get_major_version {
echo $1 | cut -d"." -f1
}
function get_minor_version {
echo $1 | cut -d"." -f2
}
function get_revision_version {
echo $1 | cut -d"." -f3 | sed "s/[^0-9]//g"
}
function get_revision_version_secondary {
echo $1 | cut -d"." -f3 | sed "s/[0-9]//g" | head -c 1
}
function check_for_minimum_ssl_version {
error_msg=""
ssl_version=`openssl version 2>/dev/null | cut -d" " -f2`
required_ssl_version=$1
if [ "$ssl_version" = "" ]; then
error_msg ="OpenSSL $ssl_version has been detected on the path. This version of OpenSSL is too old to support Aspera Connect. Please upgrade to version $required_ssl_version or newer before trying to install Aspera Connect."
fi
major_version=`get_major_version $ssl_version`
minor_version=`get_minor_version $ssl_version`
revision_version=`get_revision_version $ssl_version`
revision_version_secondary=`get_revision_version_secondary $ssl_version`
required_major_version=`get_major_version $required_ssl_version`
required_minor_version=`get_minor_version $required_ssl_version`
required_revision_version=`get_revision_version $required_ssl_version`
required_revision_version_secondary=`get_revision_version_secondary $required_ssl_version`
old_ssl_msg="OpenSSL is too old to support Aspera Connect. Please upgrade to version $required_ssl_version or newer before trying to install Aspera Connect."
if [ "$major_version" = "" ] || [ $required_major_version -gt $major_version ]; then
error_msg=$old_ssl_msg
elif [ $required_major_version -eq $major_version ]; then
if [ "$minor_version" = "" ] || [ $required_minor_version -gt $minor_version ]; then
error_msg=$old_ssl_msg
elif [ $required_minor_version -eq $minor_version ]; then
if [ "$revision_version" = "" ] || [ $required_revision_version -gt $revision_version ]; then
error_msg=$old_ssl_msg
elif [ $required_revision_version -eq $revision_version ]; then
if [ "$revision_version_secondary" = "" ] || [[ "$required_revision_version_secondary" > "$revision_version_secondary" ]]; then
error_msg=$old_ssl_msg
fi
fi
fi
fi
echo $error_msg
}
SKIP=`awk '/^__ARCHIVE_FOLLOWS__/ { print NR + 1; exit 0; }' $0`
# Take the TGZ portion of this file and pipe it to tar.
if [ "$1" = "list" ]; then
tail -n +$SKIP $0 | tar tz -f -
else
echo ""
echo "Installing Aspera Connect"
echo ""
INSTALL_DIR=~/.aspera/connect
# Backup DB file
if [ -a $INSTALL_DIR/connectdb.data ]; then
mv $INSTALL_DIR/connectdb.data $INSTALL_DIR/../connectdb.data.save
fi
# Prep install location
NEED_DIR=0
rm -rf $INSTALL_DIR 2>/dev/null
mkdir -p $INSTALL_DIR 2>/dev/null || NEED_DIR=1
while test $NEED_DIR -eq 1; do
echo "Unable to install in $INSTALL_DIR. Please enter an installation directory: "
read INSTALL_DIR
INSTALL_DIR=$INSTALL_DIR/aspera/connect
rm -rf $INSTALL_DIR 2>/dev/null
mkdir -p $INSTALL_DIR && NEED_DIR=0
echo ""
done
# Extract Connect to INSTALL_DIR
tail -n +$SKIP $0 | tar xzpo -C $INSTALL_DIR -f -
# Install Connect
$INSTALL_DIR/var/install.sh $INSTALL_DIR
# Restore DB file if it was backed up
if [ -a $INSTALL_DIR/../connectdb.data.save ]; then
if [ -a $INSTALL_DIR/connectdb.data ]; then
mv $INSTALL_DIR/connectdb.data $INSTALL_DIR/connectdb.data.orig
fi
mv $INSTALL_DIR/../connectdb.data.save $INSTALL_DIR/connectdb.data
fi
fi
exit 0
__ARCHIVE_FOLLOWS__
¯Y aspera-connect-3.7.4.147727-linux-64.tar ä]yÍÕû¿3ö±Æе¹c{calYÆ>\wî\ܺ³tï1ÈR"!BE¤TTÄ×R!*B-¥,-ú¾ÏÜç~}îuÞø~ûéßçõz<ç¼Ïs³?ç9çó¹#ÕÑÄtH<q11àQѱ[bb¢cópyL¦¦±(KSS¤ÅÛ4Úd¹ÛSO¶ÇksͦÔl§+Íá¦rÃnË1ü¨Ó?ø¤büm,ÛfwÊòÞ2n1þQ11QÆ?Ú
ñ¼+µ zþÿø®¡!!ùüñPSSøüamóâñOÛ÷?yâMÍL
ñoS]SAÄäâ%äç[BL¼°È©óû
ãx¸À~bàZÀ7e×à&ù?ùT]·¾%{b ¿ZÝWkCò
J>s|m?)Oq?÷·/¿P¸àáþv 7"}¡ÊÿÁ¦Âæξsç¡|Φ îÏ×ù
îü)-¼ËÝÄÖÈåÌÈÎmÛ,¶QltcOfã¨<ÝJNõ]Çî}òäýý&ù·b ë20ñJz£&«z_qÒb
xþ EÛ÷ ÿ3HÞ<ôÂWVáYàÝ@á ^ 2À
úÎb¢c*xOÐtCý§OÜo!7ú&Zòý¬Âé"ßJðQº>(igÿ&id¨ÿ|Ä+IzYÁÏQnÀ'#^áto\Ùß@§Ù×ÁGn~v!m»§êh(ÿ© >~FÒj °õ׿÷D.!HþqÄ,üYäÉþ¼`3
ソªñ _ª ý?B&Õ s â-Á?õ¡G@ÅÅ*UUF¸ÒÚü`C{Æ#|M£î¹\C_¾[ò´Þü äÎw-5è|xGCý
<,2i Õç ?:pÀ.2ÕÌw#¼òE%nz
I\ÙÅÐxà÷#¾HÒ7K]Vêô±'Ì,CyQ 7ÆI=¿ ;,áS ¾´Ut]0ÈfÊÚr橧Â]y*õo¼ÂàÕ/ê´VÍ º}hHÛ'áxð. ~ÞotÖîRâAzO¸²CÛÁKêÞáÏ@*{ Ú%z®L>ÃXµý
ôÞH«lÐì#į
ÖÞ¶SÂE!Ó áeàÝ¥¿oMê]Gø 93¤¼?#o𷤿÷{jKA?!便 ¾DÊ+)íÚðàa üü1È-Cü%ðrûÕ÷+Cü
©Ç@áÕ «¶sZ°:Aó°òU¸l]¦ëÀ:Hø²Z÷ÐãkÈÛØ.ô$ [@ !eÏA8:VKz&Âj+¯
ü{ÓÍÏ6Ð{H+%#u¾*øk vAý0\d*J1Aø+"E¾7øGÜ
Kéï:¬O?¢ç
ÿªæ Y+°-Aý;5(Þñ{{ ¿jª9eÀÞØÉ×HÍeÐS{ü ¡¬³ÿTöÃj
âNĨú @ß/À"5v*V°ï ³Î^TÂ¥üu@úýA}6XÒ 7+_AâóþDÙæ ò.I¼øFð_A« {Ô SBƸ øu|NÐgÿVâùªÏí
Ü;6¿J¼ª!ý'Cû6 þ`ÿÂ?ßhÈ·>¨ÍøAeQk´\dª¼:Úü5Âù$-ü[)`¹@¸®è;ð½À¾}
®ä¦ê+yÇü?|6Ä_5Wû袤úàeЫ¾2Q"WôÂ
ò?ôÏ5È}"rÏ+=4â{>´P3VêyFÕroª:ɼ/ü-C=SsL°Â<³
yktrñàYÀªÈü¬|=å¯*;
ê'y^V|è|V¸ÿ¼Ñ|6è(hè>Ég3Ô¯ð6Aí° o%r$=Ù WDÂo6 <²/TÒ@|Ä75½JðÏ
z֦J
ª<å
ûóv`ʾW#ûê^ÐÏHo^´MÊøRø'<O#í!²¦ [ôïG|®fNõïÉÂÏdÚJ¸.øaèy¼´#áªÀ*!~x
èxþzÊð1Ð}j¯ EÚàcÁÎüëWþ°Ý<NÓe ÊúòsµW{ábÐó!í ¿*ñ¢³»A÷gß/Øbá[
W{¡÷ða|'ɺ³j°7?hè[ø
oæÆ©úÿ:tùcH³G=½"·TôöEücO¥»¤·ø]Òk7»
\ýÿãr ÐÛÈ
U4ÄýµþÇrjÞ"½éÿ¨×ÿ<gÏûºþÛ§ðþ¦¬ðåÂhd-p±¿S!Í3Mø.VJ#7Zx;Ô«3a°5
ñGAOnw?>ô°/Î7$Ï;ÂÙÁ´Û庼½ð¬<ʨ åpuÇmûïûBöAþ¹!\i¡ L7n"Â34iSâ@Aë@×;* ê
*¬Ù'R@%¬îN%ÜÔG=@'A+$~à²ÁOOº-º½Ïÿøßµ}cÀÞüÁWßF×0¤?Z+ñ§~HÂÕ
yGÂgAOâu¾*ás2¬"ÛTøLUFîP« ,38Ô·iKøß'X*Â?
>|[®?9$þ&xðÁ´O
²a¢ðïp\»Èwµp}ÑÛHdßþ¸7ô·p(äkÖ"Þño|O¦Nv`¯eKzIáoäfå½øiÁú¶É$i°² =¾Ç7Ù{_¹¾ë$3äBÛ_"ýö=dÚÒßZÄ §È¸
²ÉôQÂ=Ho~Ô¶á²|;ÕXÒÇ©³:oÌî[´m¤¢ öU õWO)Ò_}OMѤPPrKÀ;Êìc¹ÿ
º,|¡ëzÀ cÂÕ ÿ¤`_IY-À¯WQëW°SçÈÎþ
Aÿ^ÁÆ:ê½øÕOôñ ãpô¦MEv.h¾!=+hLþðtÐ~âf&'Ò"m½ï?¯ßb7ñ½ ~.öº±ÿ6õøZz¼¶Y'×ãgîÓã©z¼|1=ÞNßÞ.ôòC«èñ~½õøp¢§Hï[T©ÇË¥èñz<®£º[Ôák:êqiïlÒ®êd|Ðãèñ=ý}øömðjd>|¦Ç÷ñmCæ
´ë\iÒÿÉz|eU=¾)V¬æm)ÓâòâþwÕÃÂ|IÓÇä ùãõõzv-é¯Çw×ãÉ< ãX¬Áëq{'=¾
ÍÛrz|iWx
2¾d>W¤Ç+Ñã/ö!ëºO/Dìç`
0MxÊ÷Vzº|ø±¦^¾p7=þZ=½Ý[ØF»Èzyôçþx=¾·¯OæÕÓD4éûÍz|j=¾¡¤ÿ¬ë=þ©çN2®rɺ°ù¶ÌÏsµõ¸¬÷ïÈx±}¿?NÖcû'öÍÛ´èYGìözÒ?µJéñÄ^%ö9¬ß=¤^,¯Ç§=d$Þ£Çr]áÄ>ùÄöÄþwÒÛµÄþ«¢?:XíYá¦Ò
&à?ZØâM&ó³²~_QØÈz|Ì·Äþ ëÔKڥκþ¯WW/EÚ»ìMȸo#íJìø+*uÚVß®2?/þÿôÏ)²¿&zλ½5E¯ÿëvd¿®¬Ç[ù°ôswb÷Zu}$Z÷&ûl(ý¿GöÓµõý³Ømôø\âV"ûÔnÒoê~[?BìÕ^â·%ú[?fVéÆwG=òéûá)2ßJµ[K=^*àI¹Ä>¼GüêNQzÜYè!çWÈúm/ý6sJç¼x_ù`:ø±å?ãùßUø¤]Hý·qÜOú4±ïÕãoÿ3رqDOÃüz¼ô¿©oÞúß¿Ôª£¯ÿâodû¤½É¾¯ÇÍd¼DüoÈ=ÏÜÄîõ¾Øé·¡q¾/ýßù"v>Í/oóÍó1«û;ü¿=ìÔYÏ ëôb·[ùü2¹¿*:@?UÓ˧ý=
ëõô#~Hg2~'vxyi½þ\¢ÿabWË»Q?ؾܡd?}øWG >/L_#v»8Yï¿á%ös±o®®D?Yw³È¾ß¾¬?Ò%ð¾.ÌÛ¤ÜY_«Ê&äÅ'ÈwP»Èú=FæU"ñçù÷©¾õ;Q>88KÚUè%羿H{ûóàEâg$÷*%É}E]"ÿdC=Þ{st7²Ï&ëk*éÒÈüBìO»úuÚ̬MîòýkéçUd¿^@Êí@ì[±W{èÛÕÜÿ÷'ûÎ÷dÿÚBüÄ?ßNæ§øëß5è9OúçE_ìIúÜÏ'ýÐܹH¹
ÈyÍCÞ¯Í$õlÑJhÖã5É:úøocÉ>RøK³È~Q¬ÓçÄ~î[â³CäãïyÔ¿±;<Üã]+CÆØ«²\"vf´7òOß/Áüß©o´~2éç>Ä/Kî©Ld}õ¯¨ÇGûßcAr.+Hìðë¤ÃßxÝÏÿg4ñÇþlCîC¾%ïw=½è%óaéÿ®Ä®î ·%Ùû².ï$9Gì¥ÇWûÃ=Ä~'ûæj²$÷³Ë}¬÷hÒÿÃ=IüùÌ>DèÇEý¦Ò¬Á$çb÷ä=È,rÎEÞ,#òdÝ©ßËêð²ÿ þO<±Éº®BüùËqd¾q±sÇrþÊ v©
9'!ã8øWádÞK¾÷IÎÝsä-ôÿòýÃFz¼/¹oÙÏüÖz<Ø«9ÄÎ|Nêã$íZCäf3ñ7̤H=¯þ¼JöÇ7ɹ~7ñëÖ}ÊMìÞ2O²É=ÿ÷dþW%çÍgÈøÇ=I{S¼½÷'ëº8ñosYñ·?"ûãB²ÞGùÐØó\r^ÞFöëì{0òÀbO&ópéÏÿ|ÌV¤Üéì{9ïBÖõKäþ3ø!
½Rw¬Á7ʹfKrà}T4ñË¿hhW½ðé·'Èyj:Ù/Æv$z&³{°(=EìäVÿ9®ï»
评论0