From f7583f836954d24181d5b14826f85800e0438391 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Sun, 28 Jan 2018 00:37:31 +0100 Subject: [PATCH] remove dependency to cuxd on uninstall --- update_addon => addon/update_addon | Bin rmupdate | 2 +- update_script | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename update_addon => addon/update_addon (100%) diff --git a/update_addon b/addon/update_addon similarity index 100% rename from update_addon rename to addon/update_addon diff --git a/rmupdate b/rmupdate index a22124d..9752ea2 100755 --- a/rmupdate +++ b/rmupdate @@ -23,7 +23,7 @@ case "$1" in uninstall) 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}" [ -L "${CONFIG_DIR}/addons/www/${ADDON_NAME}" ] && rm "${CONFIG_DIR}/addons/www/${ADDON_NAME}" diff --git a/update_script b/update_script index a2ad313..cd167ac 100755 --- a/update_script +++ b/update_script @@ -57,7 +57,7 @@ fi echo "add menu entry" >>$LOG_FILE 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