diff options
author | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-01-31 09:15:07 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2019-01-31 09:15:07 +0100 |
commit | d7e33cb56818afdf9d216f18183550f620d4d3d0 (patch) | |
tree | c5c4331443318a509bfeaa5b38a38be881ce4c83 | |
parent | a5f7c304cead8b1fa98c6a8f84c0817213c318b5 (diff) |
#893 Adding code to rename client pc in configureOs
-rwxr-xr-x | client/shared/scripts/configureOs | 4 |
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. |