From 9d3b0794088428e867504fd175253d98d7b89386 Mon Sep 17 00:00:00 2001 From: "Ramón M. Gómez" Date: Mon, 10 Feb 2020 14:06:37 +0100 Subject: #946: Fix bug in commit `6640e2c` when `setservderaddr` parses configuration parameters. --- server/bin/setserveraddr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') 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.}" -- cgit v1.2.3-18-g5258