Mailcow-CheckMK/RM-refesh-repo.sh

14 lines
838 B
Bash
Executable File

#!/usr/bin/env bash
REPOHOST=cmk-app-b-ttw
#REPOUSER=ttw
REPOPREFIX=mailcow
echo "Refreshing Repo from Development System ${REPOHOST}"
cp ~/local/lib/python3/cmk/base/plugins/agent_based/${REPOPREFIX}*.py ./local/lib/python3/cmk/base/plugins/agent_based/
cp ~/local/share/check_mk/agents/special/agent_${REPOPREFIX} ./local/share/check_mk/agents/special/
cp ~/local/share/check_mk/checkman/${REPOPREFIX}* ./local/share/check_mk/checkman/
cp ~/local/share/check_mk/checks/agent_${REPOPREFIX} ./local/share/check_mk/checks/
cp ~/local/share/check_mk/web/plugins/perfometer/${REPOPREFIX}* ./local/share/check_mk/web/plugins/perfometer/
cp ~/local/share/check_mk/web/plugins/wato/${REPOPREFIX}* ./local/share/check_mk/web/plugins/wato/
cp ~/local/share/check_mk/web/plugins/metrics/${REPOPREFIX}* ./local/share/check_mk/web/plugins/metrics/