summaryrefslogtreecommitdiffstats
path: root/client/shared/scripts
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2019-01-31 09:15:07 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2019-01-31 09:15:07 +0100
commitd7e33cb56818afdf9d216f18183550f620d4d3d0 (patch)
treec5c4331443318a509bfeaa5b38a38be881ce4c83 /client/shared/scripts
parenta5f7c304cead8b1fa98c6a8f84c0817213c318b5 (diff)
#893 Adding code to rename client pc in configureOs
Diffstat (limited to 'client/shared/scripts')
-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.