summaryrefslogtreecommitdiffstats
path: root/server/bin/setserveraddr
diff options
context:
space:
mode:
authorramon <ramongomez@us.es>2016-10-13 12:36:40 +0000
committerramon <ramongomez@us.es>2016-10-13 12:36:40 +0000
commitf535be9c5f4404a8642f89cf75040a51aba027ec (patch)
treead51d89fc99cdf158dc06043a6af5f7f5d054c23 /server/bin/setserveraddr
parent69052958f68c72caecaf47ad2d7d638241755c57 (diff)
VersiĆ³n 1.0.6b, #752: Corregir errata en script {{{setserveraddr}}} al modificar la configuraciĆ³n del fichero {{{ogAdmClient.cfg}}}.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@5034 a21b9725-9963-47de-94b9-378ad31fedc9
Diffstat (limited to 'server/bin/setserveraddr')
-rwxr-xr-xserver/bin/setserveraddr1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/bin/setserveraddr b/server/bin/setserveraddr
index 4f1bc148..5ac10c06 100755
--- a/server/bin/setserveraddr
+++ b/server/bin/setserveraddr
@@ -89,6 +89,7 @@ if [ -n "$SERVERIP" ]; then
# - servidor o IP en URLs excepto si contienen "localhost".
sed -e "s,ServidorAdm=.*,ServidorAdm=$SERVERIP," \
-e "s,IPlocal=.*,IPlocal=$SERVERIP," \
+ -e "s,UrlMenu=https?://\([^/]*\)/\(.*\),UrlMenu=https://$SERVERIP/\2," \
-e '/localhost/!s,https\?://[^/]*/\(.*\),https://'$SERVERIP'/\1,' $f >$tmpfile
file="${f/./-$1.}"
# Si se usa otro interfaz o cambian los datos de red; ...