summaryrefslogtreecommitdiffstats
path: root/server/bin/setserveraddr
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2014-07-10 10:13:40 +0000
committerramon <ramongomez@us.es>2014-07-10 10:13:40 +0000
commit67d0d8c349722d63bec616f4ecb1b9c92d1fc000 (patch)
treeece4663fee357e9fd541455077412bf538078f05 /server/bin/setserveraddr
parent2cbfd3f29191e996e6efe093484fcc14f6c433fa (diff)
Realizar la comprobaciĆ³n correcta para la configuraciĆ³n del DHCP en script {{{setserveraddr}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.0@4342 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 7a8a1acc..921b4730 100755
--- a/server/bin/setserveraddr
+++ b/server/bin/setserveraddr
@@ -52,7 +52,7 @@ if [ -n "$SERVERIP" ]; then
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
+ if [ ! $f -ef $file ] || ! diff -q $tmpfile $file &>/dev/null; then
mv $tmpfile $file
chmod 644 $file
ln -f $file $f