From 457983fa2a68c7b798193d7dff8349e3598fbbb3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Fri, 7 Mar 2014 18:27:21 +0100 Subject: [PATCH] Fix modifying of rOCCI server config file. --- rocci-server/debian/postinst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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." -- 1.8.2.3