diff options
author | Irina Gómez <irinagomez@us.es> | 2019-07-26 11:59:24 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-08-20 17:26:48 +0200 |
commit | cd8bf978104777532fdcab933eaf2ac8cd3210f1 (patch) | |
tree | a1ecc2a05b42b8b8d2f55bdcb801c95da0a9111a | |
parent | 76c35c19836439ecec94ece0c7b27a877e8b07b9 (diff) |
Fixs multicast error: create 'read' alias defining line break character as default delimiter.
-rwxr-xr-x | client/engine/OgLiveAdapter.lib | 15 | ||||
-rwxr-xr-x | repoman/bin/sendFileMcast | 3 | ||||
-rwxr-xr-x | server/lib/osadapter.sh | 5 |
3 files changed, 23 insertions, 0 deletions
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' |