#730 #739: Cambios aplicados:

* Corregir errata en {{{setserveraddr}}} para tratar el fichero DHCP adecuado y establecer router por defecto si no existe.
 * Eliminar cambios temporales en {{{Vagrantfile}}} que corregían problemas de {{{setserveraddr}}}.
 * Actualizar lista de tickets resueltos.

git-svn-id: https://opengnsys.es/svn/branches/version1.1@4824 a21b9725-9963-47de-94b9-378ad31fedc9
remotes/github/debian-pkg
ramon 2016-03-14 13:16:10 +00:00
parent 40797337c4
commit e0314d935a
3 changed files with 4 additions and 5 deletions

View File

@ -10,6 +10,7 @@ Tickets resueltos en módulo OpenGnsys Cloning Engine:
#544 Comprobar si Windows está en dominio antes de cambiar nombre en script de inicio de sesión (no se resolverá)
#676 Soportar sistema de ficheros ZFS
#678 Unidades organizativas con directorio de imágenes separado.
#722 Multicast entre subredes
#727 ogGrubHidePartitions comprueba tipo de partición con blkid en vez revisar las entradas del Grub
Tickets resueltos en módulo OpenGnsys Client:
@ -17,6 +18,7 @@ Tickets resueltos en módulo OpenGnsys Client:
#725 Sincronización horaria de clientes con servidor NTP
Tickets resueltos en módulo OpenGnsys Server:
#723 Cambio temporal de fichero de arranque PXE
#729 Instalar en cliente la misma versión de Rsync que la del servidor
Tickets resueltos en módulo OpenGnsys Web Admin Console:

View File

@ -27,12 +27,8 @@ mkdir -p /opt/opengnsys/images
echo "/dev/sdb1 /opt/opengnsys/images ext4 defaults 0 0" >> /etc/fstab
mount -a
wget -q http://opengnsys.es/svn/branches/version1.1/installer/opengnsys_installer.sh -O - | bash
cp /etc/dhcp/dhcpd-eth1.conf /etc/dhcp/dhcpd-eth1-orig.conf # temporal
echo y | sudo /opt/opengnsys/bin/setserveraddr eth1
echo "New OpenGnsys local URL: https://localhost:#{LOCALWEBPORT}/opengnsys/"
sed -e 's/routers /routers #{NETPREFIX}1/' /etc/dhcp/dhcpd-eth1-orig.conf >/etc/dhcp/dhcpd.conf # temporal
sed -i -e 's#://[^/]*/#://#{NETPREFIX}10/#g' /opt/opengnsys/www/controlacceso.php # temporal
sed -i -e 's#://[^/]*/#://#{NETPREFIX}10/#g' /opt/opengnsys/client/etc/ogAdmClient.cfg # temporal
sed -i '/^}/d' /etc/dhcp/dhcpd.conf
echo "
host virt1 { hardware ethernet #{MACPREFIX}01; fixed-address #{NETPREFIX}101; }

View File

@ -49,8 +49,9 @@ if [ -n "$SERVERIP" ]; then
for f in /etc/{dhcp,hcp3}/dhcpd.conf; do
if [ -f $f ]; then
# Cambiar el parámetro "next-server" de DHCP.
sed "s/next-server.*/next-server $SERVERIP;/" $f >$tmpfile
file="${f/./-$1.}"
sed -e "s/next-server.*/next-server $SERVERIP;/" \
-e "s/option routers ;/option routers ${SERVERIP%.*}.1;/" $file >$tmpfile
# Copiar el fichero y enlazarlo si hay cambios.
if [ ! $f -ef $file ] || ! diff -q $tmpfile $file &>/dev/null; then
mv $tmpfile $file