From: František Dvořák Date: Fri, 7 Mar 2014 17:27:21 +0000 (+0100) Subject: Fix modifying of rOCCI server config file. X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=457983fa2a68c7b798193d7dff8349e3598fbbb3;p=rOCCI-packaging.git Fix modifying of rOCCI server config file. --- diff --git a/rocci-server/debian/postinst b/rocci-server/debian/postinst index c474216..aa148a9 100644 --- a/rocci-server/debian/postinst +++ b/rocci-server/debian/postinst @@ -30,8 +30,8 @@ chown -R nobody:nogroup /usr/lib/rocci-server/log # hostname in configuration if [ -n "$hname" ]; then sed -i \ - -e "s,^\(\s*SetEnv\s*ServerName\s*\),\1$hname," \ - -e "s,^\(\s*SetEnv\s*ROCCI_SERVER_HOSTNAME\s*\),\1$hname," \ + -e "s,^\(\s*ServerName\s*\).*,\1$hname," \ + -e "s,^\(\s*SetEnv\s*ROCCI_SERVER_HOSTNAME\s*\).*,\1$hname," \ $conf else echo "Hostname could not be determined! Please update 'ServerName' and 'ROCCI_SERVER_HOSTNAME' in $conf."