diff options
author | Ramón M. Gómez <ramongomez@us.es> | 2020-02-10 14:06:37 +0100 |
---|---|---|
committer | Ramón M. Gómez <ramongomez@us.es> | 2020-02-10 14:06:37 +0100 |
commit | 9d3b0794088428e867504fd175253d98d7b89386 (patch) | |
tree | 130a3cd9214ee30d0289feb4d675eb2b622ecd14 | |
parent | a4620abb9a00d6b600d18feeb7e4cda40e37f380 (diff) |
#946: Fix bug in commit `6640e2c` when `setservderaddr` parses configuration parameters.
-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 e6c34f80..21b884c2 100755 --- a/server/bin/setserveraddr +++ b/server/bin/setserveraddr @@ -92,7 +92,7 @@ if [ -n "$SERVERIP" ]; then for f in $OPENGNSYS/{etc/{ogAdmServer,ogAdmRepo,ogAdmAgent}.cfg,www/controlacceso.php,client/etc/ogAdmClient.cfg}; do # Updating configuration variables (if URL does not contain "localhost"). sed -e "s,\(ServidorAdm\|IPlocal\)=.*,\1=$SERVERIP," \ - -e "s,INTERFACE=.*,INTERFACE=$SERVERDEV," \ + -e "s,^INTERFACE=.*,INTERFACE=$SERVERDEV," \ -e "s,UrlMenu=https?://\([^/]*\)/\(.*\),UrlMenu=https://$SERVERIP/\2," \ -e '/localhost/!s,https\?://[^/]*/\(.*\),https://'$SERVERIP'/\1,' $f >$tmpfile file="${f/./-$SERVERDEV.}" |