Skip to content

Commit

Permalink
fix #3
Browse files Browse the repository at this point in the history
  • Loading branch information
hobbyquaker committed May 2, 2018
1 parent 11b3b7b commit aa68629
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
Empty file.
Empty file added addon_files/node-red.cfg
Empty file.
3 changes: 2 additions & 1 deletion addon_files/node-red/node-red
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ case "$1" in

uninstall)
Stop
sed -i '/node-red/d' $CONF_DIR/hm_addons.cfg
$ADDON_DIR/update_addon node-red
$ADDON_DIR/update_addon node-red-dashboard
rm -r $ADDON_DIR
rm $CONF_DIR/lighttpd/node-red.conf
rm $CONF_DIR/rc.d/node-red
Expand Down
Binary file added addon_files/node-red/update_addon
Binary file not shown.
1 change: 1 addition & 0 deletions addon_files/update_addon
10 changes: 4 additions & 6 deletions addon_files/update_script
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ fi
ln -s $RED_DIR/update_check.tcl /usr/local/etc/config/addons/www/check_update_node_red.cgi

touch $CONF_DIR/hm_addons.cfg
sed -i '/node-red/d' $CONF_DIR/hm_addons.cfg
x=$(tail -c 1 $CONF_DIR/hm_addons.cfg)
if [ "$x" != "" ]
then
echo >> $CONF_DIR/hm_addons.cfg
fi

./update_addon node-red node-red.cfg
./update_addon node-red-dashboard node-red-dashboard.cfg

echo "node-red {CONFIG_URL /addons/red CONFIG_DESCRIPTION {de {<li>Node-RED</li>} en {<li>Node-RED</li>}} ID node-red CONFIG_NAME Node-RED}" >> $CONF_DIR/hm_addons.cfg
echo "node-red-dashboard {CONFIG_URL /addons/red/ui CONFIG_DESCRIPTION {de {<li>Node-RED Dashboard UI</li>} en {<li>Node-RED Dashboard UI</li>}} ID node-red-dashboard CONFIG_NAME \"Node-RED Dashboard\"}" >> $CONF_DIR/hm_addons.cfg

Expand Down

0 comments on commit aa68629

Please sign in to comment.