Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
etf
cmssam
Commits
64be6c1c
Commit
64be6c1c
authored
Dec 14, 2018
by
Marian Babik
Browse files
main.mk fix
parent
d066fb9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/etf-cms/docker-entrypoint.sh
View file @
64be6c1c
...
...
@@ -75,7 +75,11 @@ echo "Configuring main.mk: $ETF_HOSTED_BY"
if
[
-z
"
${
ETF_HOSTED_BY
}
"
]
;
then
echo
" Variable ETF_HOSTED_BY is not defined, not touching main.mk"
else
sed
"s/all_hosts.*/all_hosts += [
\"
${
ETF_HOSTED_BY
}
\"
]/g"
-i
/opt/omd/sites/
$CHECK_MK_SITE
/etc/check_mk/main.mk
if
grep
-q
all_hosts /opt/omd/sites/
$CHECK_MK_SITE
/etc/check_mk/main.mk
;
then
sed
"s/all_hosts.*/all_hosts += [
\"
${
ETF_HOSTED_BY
}
\"
]/g"
-i
/opt/omd/sites/
$CHECK_MK_SITE
/etc/check_mk/main.mk
else
echo
"all_hosts += [
\"
${
ETF_HOSTED_BY
}
\"
]"
>>
/opt/omd/sites/
$CHECK_MK_SITE
/etc/check_mk/main.mk
fi
fi
echo
"Configuring ETF ..."
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment