diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2019-09-27 12:30:26 +0200 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2019-09-27 12:30:26 +0200 |
commit | 74e671261bcc0ce93ecd30bc45d804029b2d4833 (patch) | |
tree | 1bd801b427936ac2d2dff868cbf4d2fcb543f8a4 | |
parent | b4d8d51e8d966798782ccdb691ae05b9d680e622 (diff) |
#802 #888: Fix bug when replacing PXE template names.
-rwxr-xr-x | installer/opengnsys_import.sh | 6 | ||||
-rwxr-xr-x | installer/opengnsys_update.sh | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/installer/opengnsys_import.sh b/installer/opengnsys_import.sh index 0197a775..528b8c3e 100755 --- a/installer/opengnsys_import.sh +++ b/installer/opengnsys_import.sh @@ -326,9 +326,9 @@ if [ -f $OPENGNSYS/tftpboot/menu.lst/templates/01 ]; then echo " * Cambio del nombre de las plantillas PXE para compatibilidad con UEFI." BIOSPXEDIR="$OPENGNSYS/tftpboot/menu.lst/templates" mv $BIOSPXEDIR/01 $BIOSPXEDIR/10 - sed -i s/MBR/1hd/ $BIOSPXEDIR/10 - sed -i s/1hd-1partition/1hd-1os/ $BIOSPXEDIR/11 - sed -i s/1hd-2partition/1hd-2os/ $BIOSPXEDIR/12 + sed -i "s/\bMBR\b/1hd/" $BIOSPXEDIR/10 + sed -i "s/\b1hd-1partition\b/1hd-1os/" $BIOSPXEDIR/11 + sed -i "s/\b1hd-2partition\b/1hd-2os/" $BIOSPXEDIR/12 # Cambiamos el valor en la base de datos. Si no lo hacemos desaparecen de las columnas del NetBootAvanzado. mysql --defaults-extra-file=$MYCNF -D "$CATALOG" -e "update ordenadores set arranque='10' where arranque='01';" &>/dev/null diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index c0f5786f..a59e1d99 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -943,9 +943,9 @@ function updateServerFiles() if [ -f $INSTALL_TARGET/tftpboot/menu.lst/templates/01 ]; then BIOSPXEDIR="$INSTALL_TARGET/tftpboot/menu.lst/templates" mv $BIOSPXEDIR/01 $BIOSPXEDIR/10 - sed -i s/MBR/1hd/ $BIOSPXEDIR/10 - sed -i s/1hd-1partition/1hd-1os/ $BIOSPXEDIR/11 - sed -i s/1hd-2partition/1hd-2os/ $BIOSPXEDIR/12 + sed -i "s/\bMBR\b/1hd/" $BIOSPXEDIR/10 + sed -i "s/\b1hd-1partition\b/1hd-1os/" $BIOSPXEDIR/11 + sed -i "s/\b1hd-2partition\b/1hd-2os/" $BIOSPXEDIR/12 fi } |