Skip to content

Commit

Permalink
Update source.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
NorthernMan54 committed Jul 19, 2023
1 parent 9babdd8 commit 396da5a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/source.sh
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
#!/bin/sh

NODE_BIN_PATH="/var/packages/homebridge/target/app/bin"


export HB_SERVICE_STORAGE_PATH="$(readlink -f /var/packages/homebridge/shares/homebridge)"

# Use Synology supplied NodeJS v18 if installed - https://github.com/homebridge/homebridge-syno-spk/issues/124
if [ -f /var/packages/Node.js_v18/target/usr/local/bin/node ]; then
NODE_BIN_PATH="/var/packages/Node.js_v18/target/usr/local/bin"
export HB_SERVICE_NODE_EXEC_PATH="/var/packages/Node.js_v18/target/usr/local/bin/node"
else
NODE_BIN_PATH="/var/packages/homebridge/target/app/bin"
export HB_SERVICE_NODE_EXEC_PATH="/var/packages/homebridge/target/app/bin/node"
fi

Expand Down

0 comments on commit 396da5a

Please sign in to comment.