summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_export.sh1
-rwxr-xr-xinstaller/opengnsys_import.sh8
-rwxr-xr-xinstaller/opengnsys_installer.sh1
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"
}