diff options
author | ramon <ramongomez@us.es> | 2011-03-10 13:31:53 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2011-03-10 13:31:53 +0000 |
commit | 6ef9f238a9cd28577e00fe3b2cb2a42d34c99080 (patch) | |
tree | 58f605fa6e57a3378a2e6fa43d503316592c5263 /installer | |
parent | e4736676531eafffac1dc24bfa70bf20d50a0364 (diff) |
Versión 1.0: instalador y actualizador descargan el cliente desde un único fichero.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@1542 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_installer.sh | 15 | ||||
-rwxr-xr-x | installer/opengnsys_update.sh | 15 |
2 files changed, 14 insertions, 16 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 412dbf97..75941a31 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1062,20 +1062,19 @@ function openGnsysOldClientCreate() function openGnsysClientCreate() { local DOWNLOADURL=http://www.opengnsys.es/downloads - local tmpfile=/tmp/ogclient.tgz + local FILENAME=ogclient-1.0-lucid-32bit.tar.gz + local TMPFILE=/tmp/$FILENAME echoAndLog "${FUNCNAME}(): Loading Client" # Descargar y descomprimir cliente ogclient - wget $DOWNLOADURL/20 -O $tmpfile - wget $DOWNLOADURL/21 -O - >> $tmpfile - wget $DOWNLOADURL/22 -O - >> $tmpfile - if [ ! -s $tmpfile ]; then - errorAndLog "${FUNCNAME}(): Error loading client files" + wget $DOWNLOADURL/$FILENAME -O $TMPFILE + if [ ! -s $TMPFILE ]; then + errorAndLog "${FUNCNAME}(): Error loading OpenGnSys Client" return 1 fi echoAndLog "${FUNCNAME}(): Extranting Client files" - tar xzvf $tmpfile -C $INSTALL_TARGET/tftpboot - rm -f $tmpfile + tar xzvf $TMPFILE -C $INSTALL_TARGET/tftpboot + rm -f $TMPFILE # Usar la versión más reciente del Kernel y del Initrd para el cliente. ln $(ls $INSTALL_TARGET/tftpboot/ogclient/vmlinuz-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/ogvmlinuz ln $(ls $INSTALL_TARGET/tftpboot/ogclient/initrd.img-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/oginitrd.img diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 0a3810a8..d72bc271 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -437,20 +437,19 @@ function updateOldClient() function updateClient() { local DOWNLOADURL=http://www.opengnsys.es/downloads - local tmpfile=/tmp/ogclient.tgz + local FILENAME=ogclient-1.0-lucid-32bit.tar.gz + local TMPFILE=/tmp/$FILENAME echoAndLog "${FUNCNAME}(): Loading Client" # Descargar y descomprimir cliente ogclient - wget $DOWNLOADURL/20 -O $tmpfile - wget $DOWNLOADURL/21 -O - >> $tmpfile - wget $DOWNLOADURL/22 -O - >> $tmpfile - if [ ! -s $tmpfile ]; then - errorAndLog "${FUNCNAME}(): Error loading client files" + wget $DOWNLOADURL/20 -O $TMPFILE + if [ ! -s $TMPFILE ]; then + errorAndLog "${FUNCNAME}(): Error loading OpenGnSys Client" return 1 fi echoAndLog "${FUNCNAME}(): Extranting Client files" - tar xzvf $tmpfile -C $INSTALL_TARGET/tftpboot - rm -f $tmpfile + tar xzvf $TMPFILE -C $INSTALL_TARGET/tftpboot + rm -f $TMPFILE # Usar la versión más reciente del Kernel y del Initrd para el cliente. ln $(ls $INSTALL_TARGET/tftpboot/ogclient/vmlinuz-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/ogvmlinuz ln $(ls $INSTALL_TARGET/tftpboot/ogclient/initrd.img-*|tail -1) $INSTALL_TARGET/tftpboot/ogclient/oginitrd.img |