diff options
author | ramon <ramongomez@us.es> | 2014-07-07 09:44:47 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2014-07-07 09:44:47 +0000 |
commit | c6b55d802844d8a8e44610c8413b5d8479da9e9e (patch) | |
tree | 516666dbf94328d93c97d6894f3d8df2320428ab /server/bin/setserveraddr | |
parent | 0d4a8f5ce1351d1e32a4ce34a9036878cc785761 (diff) |
Corregir errata en script {{{setserveraddr}}} al crear cláusula {{{next-server}}} de DHCP.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4320 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/setserveraddr')
-rwxr-xr-x | server/bin/setserveraddr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/bin/setserveraddr b/server/bin/setserveraddr index a53245c6..80015bbc 100755 --- a/server/bin/setserveraddr +++ b/server/bin/setserveraddr @@ -49,7 +49,7 @@ if [ -n "$SERVERIP" ]; then for f in /etc/{dhcp,hcp3}/dhcpd.conf; do if [ -f $f ]; then # Cambiar el parámetro "next-server" de DHCP. - sed "s/next-server.*/next-server $SERVERIP/" $f >$tmpfile + sed "s/next-server.*/next-server $SERVERIP;/" $f >$tmpfile file="${f/./-$1.}" # Copiar el fichero y enlazarlo si hay cambios. if ! diff -q $tmpfile $file &>/dev/null; then |