summaryrefslogtreecommitdiffstats
path: root/installer
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2011-03-08 10:28:12 +0000
committerramon <ramongomez@us.es>2011-03-08 10:28:12 +0000
commitd47d38dba8beb01a077c176d95f887738af98c97 (patch)
tree3d0e7ff7de011bfc2d32037148946e9f0d8e0183 /installer
parentefb517d935b18c4d37a839744631a8fcd1aca21a (diff)
Rama version1.0: instalador no configura NFS, no duplica el recurso {{{tftpboot}}} en Samba y corrección de erratas.
Close #313, #314. git-svn-id: https://opengnsys.es/svn/branches/version1.0@1533 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'installer')
-rwxr-xr-xinstaller/opengnsys_installer.sh41
1 files changed, 15 insertions, 26 deletions
diff --git a/installer/opengnsys_installer.sh b/installer/opengnsys_installer.sh
index 3642747e..412dbf97 100755
--- a/installer/opengnsys_installer.sh
+++ b/installer/opengnsys_installer.sh
@@ -984,16 +984,16 @@ function openGnsysCopyClientFiles()
local hayErrores=0
echoAndLog "${FUNCNAME}(): Copying OpenGnSys Client files."
- cp -ar $WORKDIR/opengnsys/client/shared/* $INSTALL_TARGET/client
- if [ $? -ne 0 ]; then
+ cp -ar $WORKDIR/opengnsys/client/shared/* $INSTALL_TARGET/client
+ if [ $? -ne 0 ]; then
errorAndLog "${FUNCNAME}(): error while copying client estructure"
hayErrores=1
fi
- find $INSTALL_TARGET/client -name .svn -type d -exec rm -fr {} \; 2>/dev/null
+ find $INSTALL_TARGET/client -name .svn -type d -exec rm -fr {} \; 2>/dev/null
echoAndLog "${FUNCNAME}(): Copying OpenGnSys Cloning Engine files."
- mkdir -p $INSTALL_TARGET/client/lib/engine/bin
- cp -ar $WORKDIR/opengnsys/client/engine/*.lib $INSTALL_TARGET/client/lib/engine/bin
+ mkdir -p $INSTALL_TARGET/client/lib/engine/bin
+ cp -ar $WORKDIR/opengnsys/client/engine/*.lib $INSTALL_TARGET/client/lib/engine/bin
if [ $? -ne 0 ]; then
errorAndLog "${FUNCNAME}(): error while copying engine files"
hayErrores=1
@@ -1018,19 +1018,6 @@ function openGnsysOldClientCreate()
local hayErrores=0
-#sustituido en la funcion openGnsysCopyClientFiles
- #echoAndLog "${FUNCNAME}(): Copying OpenGnSys Client files."
- # cp -ar $WORKDIR/opengnsys/client/shared/* $INSTALL_TARGET/client
- # find $INSTALL_TARGET/client -name .svn -type d -exec rm -fr {} \; 2>/dev/null
- #echoAndLog "${FUNCNAME}(): Copying OpenGnSys Cloning Engine files."
- # mkdir -p $INSTALL_TARGET/client/lib/engine/bin
- # cp -ar $WORKDIR/opengnsys/client/engine/*.lib $INSTALL_TARGET/client/lib/engine/bin
- #if [ $? -ne 0 ]; then
- # errorAndLog "${FUNCNAME}(): error while copying engine files"
- # hayErrores=1
- #fi
-# #sustituido en la funcion openGnsysCopyClientFiles
-
# Cargar Kernel, Initrd y paquetes udeb para la distribución del servidor (o por defecto).
OSCODENAME=$(lsb_release -cs 2>/dev/null)
if [ "$OSDISTRIB" = "Ubuntu" -a -n "$OSCODENAME" ]; then
@@ -1139,9 +1126,9 @@ function installationSummary()
echoAndLog "Project version: $(cat $INSTALL_TARGET/doc/VERSION.txt 2>/dev/null)"
echoAndLog "Installation directory: $INSTALL_TARGET"
echoAndLog "Repository directory: $INSTALL_TARGET/images"
- echoAndLog "DHCP configuracion file: /etc/dhcp3/dhcpd.conf"
- echoAndLog "TFTP configuracion directory: /var/lib/tftpboot"
- echoAndLog "Samba configuracion directory: /etc/samba"
+ echoAndLog "DHCP configuration file: /etc/dhcp3/dhcpd.conf"
+ echoAndLog "TFTP configuration directory: /var/lib/tftpboot"
+ echoAndLog "Samba configuration directory: /etc/samba"
echoAndLog "Web Console URL: $OPENGNSYS_CONSOLEURL"
echoAndLog "Web Console admin user: $OPENGNSYS_DB_USER"
echoAndLog "Web Console admin password: $OPENGNSYS_DB_PASSWD"
@@ -1226,11 +1213,12 @@ fi
tftpConfigure
# Configuración NFS
-nfsConfigure
-if [ $? -ne 0 ]; then
- errorAndLog "Error while configuring nfs server!"
- exit 1
-fi
+#### (descomentar las siguientes líneas para exportar servicios por NFS)
+#nfsConfigure
+#if [ $? -ne 0 ]; then
+# errorAndLog "Error while configuring nfs server!"
+# exit 1
+#fi
# Configuración Samba
smbConfigure
@@ -1333,6 +1321,7 @@ if [ $? -ne 0 ]; then
fi
# Crear la estructura del antiguo cliente initrd de OpenGnSys 0.10
+#### (descomentar las siguientes líneas para generar cliente initrd)
#openGnsysOldClientCreate
#if [ $? -ne 0 ]; then
# errorAndLog "Warning: cannot create old initrd client"