summaryrefslogtreecommitdiffstats
path: root/server/bin/setserveraddr
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-07-07 09:44:47 +0000
committerramon <ramongomez@us.es>2014-07-07 09:44:47 +0000
commitc6b55d802844d8a8e44610c8413b5d8479da9e9e (patch)
tree516666dbf94328d93c97d6894f3d8df2320428ab /server/bin/setserveraddr
parent0d4a8f5ce1351d1e32a4ce34a9036878cc785761 (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-xserver/bin/setserveraddr2
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