mirror of
https://github.com/j-a-n/raspberrymatic-addon-rmupdate.git
synced 2023-10-10 13:37:40 +02:00
remove dependency to cuxd on uninstall
This commit is contained in:
parent
de7df23b01
commit
f7583f8369
2
rmupdate
2
rmupdate
@ -23,7 +23,7 @@ case "$1" in
|
|||||||
|
|
||||||
uninstall)
|
uninstall)
|
||||||
logger -t homematic -p user.info "removing addon ${ADDON_NAME}"
|
logger -t homematic -p user.info "removing addon ${ADDON_NAME}"
|
||||||
"/usr/local/addons/cuxd/update_addon" ${ADDON_NAME} || true
|
"${ADDON_DIR}/update_addon" ${ADDON_NAME} || true
|
||||||
|
|
||||||
[ -e "${ADDON_DIR}" ] && rm -rf "${ADDON_DIR}"
|
[ -e "${ADDON_DIR}" ] && rm -rf "${ADDON_DIR}"
|
||||||
[ -L "${CONFIG_DIR}/addons/www/${ADDON_NAME}" ] && rm "${CONFIG_DIR}/addons/www/${ADDON_NAME}"
|
[ -L "${CONFIG_DIR}/addons/www/${ADDON_NAME}" ] && rm "${CONFIG_DIR}/addons/www/${ADDON_NAME}"
|
||||||
|
@ -57,7 +57,7 @@ fi
|
|||||||
|
|
||||||
echo "add menu entry" >>$LOG_FILE
|
echo "add menu entry" >>$LOG_FILE
|
||||||
touch "${CONFIG_DIR}/hm_addons.cfg"
|
touch "${CONFIG_DIR}/hm_addons.cfg"
|
||||||
./update_addon ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg"
|
${ADDON_DIR}/update_addon ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg"
|
||||||
|
|
||||||
sync
|
sync
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user