1
0
mirror of https://github.com/alexreinert/homematic_check_mk.git synced 2023-10-10 13:37:02 +02:00
homematic_check_mk/addon/update_script

22 lines
402 B
Plaintext
Raw Normal View History

2017-06-25 21:24:20 +02:00
#!/bin/sh
ADDONNAME=check_mk_agent
CONFIG_DIR=/usr/local/etc/config
ADDON_DIR=/usr/local/addons/${ADDONNAME}
RCD_DIR=${CONFIG_DIR}/rc.d
2018-01-08 09:06:56 +01:00
mount /usr/local || true
2017-06-25 21:24:20 +02:00
# create necessary directories
mkdir -p ${ADDON_DIR}
chmod 755 ${ADDON_DIR}
2017-07-01 12:57:22 +02:00
mkdir -p ${ADDON_DIR}/plugins
chmod 755 ${ADDON_DIR}/plugins
2017-06-25 21:24:20 +02:00
mkdir -p ${RCD_DIR}
chmod 755 ${RCD_DIR}
cp -af addon/* ${ADDON_DIR}
cp -af rc.d/* ${RCD_DIR}
sync