From cd8bf978104777532fdcab933eaf2ac8cd3210f1 Mon Sep 17 00:00:00 2001 From: Irina Gómez Date: Fri, 26 Jul 2019 11:59:24 +0200 Subject: Fixs multicast error: create 'read' alias defining line break character as default delimiter. --- client/engine/OgLiveAdapter.lib | 15 +++++++++++++++ repoman/bin/sendFileMcast | 3 +++ server/lib/osadapter.sh | 5 +++++ 3 files changed, 23 insertions(+) create mode 100755 client/engine/OgLiveAdapter.lib create mode 100755 server/lib/osadapter.sh diff --git a/client/engine/OgLiveAdapter.lib b/client/engine/OgLiveAdapter.lib new file mode 100755 index 00000000..44f49534 --- /dev/null +++ b/client/engine/OgLiveAdapter.lib @@ -0,0 +1,15 @@ +#!/bin/bash +#/** +#@file OgLiveAdapter +#@brief Librería o clase OgLiveAdapter +#@class OgLiveAdapter +#@brief Funciones o configuración para adaptar cambios en los comandos de los ogLive, de modo que no afecten al motor de clonación +#@version 1.1.1 +#@warning License: GNU GPLv3+ +#*/ + +set -a +shopt -s expand_aliases + +# read: Configura el salto de línea como delimintador por defecto. +alias read='read -d\n' diff --git a/repoman/bin/sendFileMcast b/repoman/bin/sendFileMcast index 222a6d40..b7eeb303 100755 --- a/repoman/bin/sendFileMcast +++ b/repoman/bin/sendFileMcast @@ -11,6 +11,9 @@ OGBIN=$OPENGNSYS/bin PATH=$PATH:$OGBIN REPO_IFACE="$(/opt/opengnsys/bin/getRepoIface)" +# Compatibilidad con Ubuntu 18 +source $OPENGNSYS/lib/osadapter.sh + # Si se solicita, mostrar ayuda. if [ "$*" == "help" ]; then echo "Formato: $PROG fichero|nombreImagen datosMulticast" diff --git a/server/lib/osadapter.sh b/server/lib/osadapter.sh new file mode 100755 index 00000000..aa3c4774 --- /dev/null +++ b/server/lib/osadapter.sh @@ -0,0 +1,5 @@ +#!/bin/bash +# Funciones o configuración para la compatibilidad con Ubuntu 18 en el servidor. +set -a +shopt -s expand_aliases +alias read='read -d\n' -- cgit v1.2.3-18-g5258