#802 The installation, import and export scripts considers the PXE files for UEFI.

remotes/github/pjlink
Irina Gomez 2019-03-29 13:36:33 +01:00
parent d61c5e5659
commit 89f88ba76c
3 changed files with 7 additions and 3 deletions

View File

@ -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 \

View File

@ -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."

View File

@ -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"
}