From f9d474aed78364e63f807b1f491e6e480b484a15 Mon Sep 17 00:00:00 2001 From: hobbyquaker Date: Mon, 30 Apr 2018 19:15:15 +0200 Subject: [PATCH] try to fix update, ln force, exit 0 --- addon_files/update_script | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/addon_files/update_script b/addon_files/update_script index 9e6a3ff5..1bf31e13 100755 --- a/addon_files/update_script +++ b/addon_files/update_script @@ -14,12 +14,12 @@ fi cp -af node-red $RED_DIR mkdir -p $CONF_DIR/lighttpd -ln -s $RED_DIR/lighttpd.conf $CONF_DIR/lighttpd/node-red.conf +ln -sf $RED_DIR/lighttpd.conf $CONF_DIR/lighttpd/node-red.conf chmod a+x $RED_DIR/node-red -ln -s $RED_DIR/node-red $CONF_DIR/rc.d/node-red +ln -sf $RED_DIR/node-red $CONF_DIR/rc.d/node-red -ln -s $RED_DIR/lib/node_modules/node-red-admin/node-red-admin.js /usr/local/bin/node-red-admin +ln -sf $RED_DIR/lib/node_modules/node-red-admin/node-red-admin.js /usr/local/bin/node-red-admin if [ ! -f $RED_DIR/var/flows.json ]; then mv $RED_DIR/var/example-flows.json $RED_DIR/var/flows.json @@ -36,3 +36,5 @@ echo "node-red {CONFIG_URL /addons/red CONFIG_DESCRIPTION {de {
  • Node-RED
  • echo "node-red-dashboard {CONFIG_URL /addons/red/ui CONFIG_DESCRIPTION {de {
  • Node-RED Dashboard UI
  • } en {
  • Node-RED Dashboard UI
  • }} ID node-red-dashboard CONFIG_NAME \"Node-RED Dashboard\"}" >> $CONF_DIR/hm_addons.cfg sync + +exit 0