diff options
author | ramon <ramongomez@us.es> | 2016-03-14 12:08:33 +0000 |
---|---|---|
committer | ramon <ramongomez@us.es> | 2016-03-14 12:08:33 +0000 |
commit | 40797337c4135bfb68b91bc454d17e8399801620 (patch) | |
tree | 373bcadf0d8fae2eb349953c741ab3d4c75bbaae /server/bin/setserveraddr | |
parent | aeedc72b0de0aeb278e2ba2ca05dbc21aecfda51 (diff) |
Corregir errata en script {{{setserveraddr}}} al tratar algunas URL y forzar cambio a HTTPS.
git-svn-id: https://opengnsys.es/svn/branches/version1.1@4823 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 921b4730..c3bb3642 100755 --- a/server/bin/setserveraddr +++ b/server/bin/setserveraddr @@ -88,7 +88,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 '/localhost/!s,http://[^/]*/\(.*\),http://'$SERVERIP'/\1,' $f >$tmpfile + -e '/localhost/!s,https\?://[^/]*/\(.*\),https://'$SERVERIP'/\1,' $f >$tmpfile file="${f/./-$1.}" # Si se usa otro interfaz o cambian los datos de red; ... if [ ! $f -ef $file ] || ! diff -q $tmpfile $file &>/dev/null; then |