git://scientific.zcu.cz
/
rOCCI-packaging.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac1f95c
)
Fix modifying of rOCCI server config file.
author
František Dvořák
<valtri@civ.zcu.cz>
Fri, 7 Mar 2014 17:27:21 +0000
(18:27 +0100)
committer
František Dvořák
<valtri@civ.zcu.cz>
Fri, 7 Mar 2014 17:27:21 +0000
(18:27 +0100)
rocci-server/debian/postinst
patch
|
blob
|
blame
|
history
diff --git
a/rocci-server/debian/postinst
b/rocci-server/debian/postinst
index
c474216
..
aa148a9
100644
(file)
--- 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*Se
tEnv\s*ServerName\s*\)
,\1$hname," \
- -e "s,^\(\s*SetEnv\s*ROCCI_SERVER_HOSTNAME\s*\),\1$hname," \
+ -e "s,^\(\s*Se
rverName\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."