summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts/configureOs
diff options
context:
space:
mode:
Diffstat (limited to 'client/shared/scripts/configureOs')
-rwxr-xr-xclient/shared/scripts/configureOs4
1 files changed, 4 insertions, 0 deletions
diff --git a/client/shared/scripts/configureOs b/client/shared/scripts/configureOs
index 4b7ec6f7..5e02ec4c 100755
--- a/client/shared/scripts/configureOs
+++ b/client/shared/scripts/configureOs
@@ -88,6 +88,10 @@ case "$OSTYPE" in
[ -n "$(find $MNTDIR/usr/sbin $MNTDIR/sbin $MNTDIR/usr/local/sbin -name ogAdmLnxClient -print)" ] && ogUninstallLinuxClient $1 $2
# Configurar nuevo agente OGAgent.
ogConfigureOgagent $1 $2
+ ## Modificar el nombre del equipo
+ echo "Asignar nombre Linux \"$HOST\"."
+ ETC=$(ogGetPath $1 $2 /etc)
+ [ -d "$ETC" ] && echo "$HOST" >$ETC/hostname 2>/dev/null
;;
MacOS) # Postconfiguración de Mac OS X.
# Fichero indicador de activación de postconfiguración.