diff options
author | ramon <ramongomez@us.es> | 2010-02-16 15:19:52 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2010-02-16 15:19:52 +0000 |
commit | 5d6bf9782fc8738e45236e9e9185fc9c3ff645fd (patch) | |
tree | b54d19d22db43c08b04abb30bff41222a64d97a8 /installer | |
parent | ab7db130ae64f16ba49874a8a2cb5513d0a45970 (diff) |
installer y updater generan documentación Doxygen de la API para la consola web; errores y cadenas actualizadas a v1.0
git-svn-id: https://opengnsys.es/svn/trunk@760 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-x | installer/opengnsys_installer.sh | 18 | ||||
-rwxr-xr-x | installer/opengnsys_update.sh | 43 |
2 files changed, 43 insertions, 18 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh index 68c95ed2..a1eb1a1c 100755 --- a/installer/opengnsys_installer.sh +++ b/installer/opengnsys_installer.sh @@ -746,6 +746,22 @@ EOF fi } +# Crear documentación Doxygen para la consola web. +function makeDoxygenFiles() +{ + echoAndLog "${FUNCNAME}(): Making Doxygen web files..." + $WORKDIR/opengnsys/installer/ogGenerateDoc.sh \ + $WORKDIR/opengnsys/client/engine $INSTALL_TARGET/www + if [ ! -d "$INSTALL_TARGET/www/html" ]; then + errorAndLog "${FUNCNAME}(): unable to create Doxygen web files." + return 1 + fi + mv "$INSTALL_TARGET/www/html" "$INSTALL_TARGET/www/api" + chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/www/api + echoAndLog "${FUNCNAME}(): Doxygen web files created successfully." +} + + # Crea la estructura base de la instalación de opengnsys function openGnsysInstallCreateDirs() { @@ -1110,6 +1126,8 @@ fi # copiando paqinas web installWebFiles +# Generar páqinas web de documentación de la API +makeDoxygenFiles # creando configuracion de apache2 openGnsysInstallWebConsoleApacheConf $INSTALL_TARGET /etc/apache2 diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh index 82025116..5f6e56bf 100755 --- a/installer/opengnsys_update.sh +++ b/installer/opengnsys_update.sh @@ -166,24 +166,13 @@ function svnExportCode() function getNetworkSettings() { - # Variables globales definidas: - # - SERVERIP: IP local del servidor. - # - NETIP: IP de la red. - # - NETMASK: máscara de red. - # - NETBROAD: IP de difusión de la red. - # - ROUTERIP: IP del router. - # - DNSIP: IP del servidor DNS. - - echoAndLog "getNetworkSettings(): Detecting default network parameters." - SERVERIP=$(LANG=C ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | head -n1 | awk '{print $1}') - NETMASK=$(LANG=C ifconfig | grep 'Mask:'| grep -v '127.0.0.1' | cut -d: -f4 | head -n1 | awk '{print $1}') - NETBROAD=$(LANG=C ifconfig | grep 'Bcast:'| grep -v '127.0.0.1' | cut -d: -f3 | head -n1 | awk '{print $1}') - NETIP=$(netstat -r | grep $NETMASK | head -n1 | awk '{print $1}') - ROUTERIP=$(netstat -nr | awk '$1~/0\.0\.0\.0/ {print $2}') - DNSIP=$(awk '/nameserver/ {print $2}' /etc/resolv.conf | head -n1) - if [ -z "$NETIP" -o -z "$NETMASK" ]; then - errorAndLog "getNetworkSettings(): Network not detected." - exit 1 + local MAINDEV + + echoAndLog "getNetworkSettings(): Detecting default network parameters." + MAINDEV=$(ip -o link show up | awk '!/loopback/ {d=d$2} END {sub(/:.*/,"",d); print d}') + if [ -z "$MAINDEV" ]; then + errorAndLog "${FUNCNAME}(): Network device not detected." + return 1 fi # Variables de ejecución de Apache @@ -221,6 +210,22 @@ function updateWebFiles() } +# Crear documentación Doxygen para la consola web. +function makeDoxygenFiles() +{ + echoAndLog "${FUNCNAME}(): Making Doxygen web files..." + $WORKDIR/opengnsys/installer/ogGenerateDoc.sh \ + $WORKDIR/opengnsys/client/engine $INSTALL_TARGET/www + if [ ! -d "$INSTALL_TARGET/www/html" ]; then + errorAndLog "${FUNCNAME}(): unable to create Doxygen web files." + return 1 + fi + mv "$INSTALL_TARGET/www/html" "$INSTALL_TARGET/www/api" + chown -R $APACHE_RUN_USER:$APACHE_RUN_GROUP $INSTALL_TARGET/www/api + echoAndLog "${FUNCNAME}(): Doxygen web files created successfully." +} + + # Crea la estructura base de la instalación de opengnsys function createDirs() { @@ -417,6 +422,8 @@ if [ $? -ne 0 ]; then errorAndLog "Error updating OpenGnSys Web Admin files" exit 1 fi +# Generar páginas Doxygen para instalar en el web +makeDoxygenFiles # Creando la estructura del cliente recompileClient |