diff options
author | Irina Gómez <irinagomez@us.es> | 2019-03-29 13:36:33 +0100 |
---|---|---|
committer | Irina Gómez <irinagomez@us.es> | 2019-03-29 13:36:33 +0100 |
commit | 89f88ba76c001f0e9804fad599c67c0ffe42f647 (patch) | |
tree | c99b357c69cbcc769102fa34312f08d862b74ff2 /installer | |
parent | d61c5e5659a4c1ef7cdcfa0fc788b616d6c2cb45 (diff) |
#802 The installation, import and export scripts considers the PXE files for UEFI.
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_export.sh | 1 | ||||
-rwxr-xr-x | installer/opengnsys_import.sh | 8 | ||||
-rwxr-xr-x | installer/opengnsys_installer.sh | 1 |
3 files changed, 7 insertions, 3 deletions
diff --git a/installer/opengnsys_export.sh b/installer/opengnsys_export.sh index 747a795a..ced1c0ae 100755 --- a/installer/opengnsys_export.sh +++ b/installer/opengnsys_export.sh @@ -99,6 +99,7 @@ tar -cvzf $BACKUPFILE --transform="s!^!$BACKUPPREFIX/!" \ -C $TMPDIR IPSERVER.txt \ -C $DHCPDIR dhcpd.conf \ -C $OPENGNSYS/tftpboot menu.lst \ + -C $OPENGNSYS/tftpboot grub \ -C $OPENGNSYS/doc VERSION.json \ -C $OPENGNSYS/client/etc engine.cfg engine.json \ -C $OPENGNSYS/www menus \ diff --git a/installer/opengnsys_import.sh b/installer/opengnsys_import.sh index c3b343ee..1f5ce410 100755 --- a/installer/opengnsys_import.sh +++ b/installer/opengnsys_import.sh @@ -305,9 +305,11 @@ done # TFTP echo " * Guardamos los ficheros PXE de los clientes." -mv $OPENGNSYS/tftpboot/menu.lst $OPENGNSYS/tftpboot/menu.lst-$DATE -cp -r $TMPDIR/menu.lst $OPENGNSYS/tftpboot -chown -R www-data:www-data $OPENGNSYS/tftpboot/menu.lst +for BOOTLOADER in menu.lst grub; do + mv $OPENGNSYS/tftpboot/$BOOTLOADER $OPENGNSYS/tftpboot/$BOOTLOADER-$DATE + cp -r $TMPDIR/$BOOTLOADER $OPENGNSYS/tftpboot + chown -R www-data:www-data $OPENGNSYS/tftpboot/$BOOTLOADER +done # Configuración de los clientes echo " * Guardamos la configuración de los clientes." diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 310c137e..e125e281 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -1440,6 +1440,7 @@ function clientCreate() oglivecli install $FILENAME # Adaptar permisos. chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/tftpboot/menu.lst + chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/tftpboot/grub echoAndLog "${FUNCNAME}(): Client generation success" } |