summaryrefslogtreecommitdiffstats
path: root/server/bin/oglivecli
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2018-02-20 12:19:12 +0000
committerramon <ramongomez@us.es>2018-02-20 12:19:12 +0000
commitb17e87e096bdc340aae129656bd6b46750c59732 (patch)
tree42ef53e4983696005a2d6a2db6c76f08b0c061ab /server/bin/oglivecli
parent03044650e0b68aeb5b721e9562dca823091002d7 (diff)
#739 #768: Cambios menores:
- Crear entradas correctas en DHCP de entorno Vagrant. - Permisos correctos en todos los clientes ogLive. - Obtener datos correctos al ejecutar {{{oglivecli convert}}}. git-svn-id: https://opengnsys.es/svn/branches/version1.1@5603 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/oglivecli')
-rwxr-xr-xserver/bin/oglivecli4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/bin/oglivecli b/server/bin/oglivecli
index 74b37275..451c3c12 100755
--- a/server/bin/oglivecli
+++ b/server/bin/oglivecli
@@ -130,8 +130,8 @@ function convert() {
# Add entry to JSON file using ogclient kernel version.
OGLIVEKRNL=$(file -bkr $OGCLIENT/ogvmlinuz | awk '/Linux/ {for(i=1;i<=NF;i++) if($i~/version/) {v=$(i+1);sub(/-.*/,"",v);print v}}')
OGLIVEDIR=$DEFOGLIVE-$OGLIVEKRNL
- [ -r $OLDINFOFILE ] && OGLIVEISO=$(head -1 $OLDINFOFILE).iso
- addToJson "$(echo $OGLIVEISO|cut -f2 -d-)" "$OGLIVEKRNL" "i386" "${OGLIVEISO##*-}" "$OGLIVEDIR" "$OGLIVEISO"
+ [ -r $OLDINFOFILE ] && OGLIVEISO="$(head -1 $OLDINFOFILE)"
+ addToJson "$(echo $OGLIVEISO|cut -f2 -d-)" "$OGLIVEKRNL" "i386" "${OGLIVEISO##*-}" "$OGLIVEDIR" "$OGLIVEISO.iso"
# Rename directory, link to default and clean old files.
mv -v $OGCLIENT $OGLIVEDIR
ln -vfs $OGLIVEDIR $DEFOGLIVE