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
20921522
Commit
20921522
authored
Mar 06, 2019
by
Marian Babik
Browse files
init fix
parent
84609144
Changes
1
Hide whitespace changes
Inline
Side-by-side
docker/etf-cms/docker-entrypoint.sh
View file @
20921522
...
...
@@ -81,9 +81,9 @@ if [[ -z "${ETF_HOSTED_BY}" ]]; then
echo
" Variable ETF_HOSTED_BY is not defined, not touching main.mk"
else
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
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
echo
"all_hosts += [
\"
${
ETF_HOSTED_BY
}
\"
]"
>>
/opt/omd/sites/
$
{
CHECK_MK_SITE
}
/etc/check_mk/main.mk
fi
fi
...
...
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