Add and use update_addon instead to rely on installed cuxd.

This commit is contained in:
Jan Schneider 2018-01-27 15:51:08 +01:00
parent 39c78b670d
commit d853357db9
4 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ version=$(cat VERSION)
addon_file="$(pwd)/rmupdate.tar.gz"
tmp_dir=$(mktemp -d)
for f in VERSION update_script addon ccu1 ccu2 ccurm rmupdate; do
for f in VERSION update_script update_addon addon ccu1 ccu2 ccurm rmupdate; do
[ -e $f ] && cp -a $f "${tmp_dir}/"
done
chmod 755 "${tmp_dir}/update_script"

Binary file not shown.

BIN
update_addon Executable file

Binary file not shown.

View File

@ -57,7 +57,7 @@ fi
echo "add menu entry" >>$LOG_FILE
touch "${CONFIG_DIR}/hm_addons.cfg"
"/usr/local/addons/cuxd/update_addon" ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg"
./update_addon ${ADDON_NAME} "${ADDON_DIR}/etc/${ADDON_NAME}-addon.cfg"
sync