Skip to content

Commit bc2caa4

Browse files
committed
use the system installed node version
1 parent ac39a87 commit bc2caa4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

scripts/deb/postinst

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@ echo 'webide "node" "service adafruit-webide.sh restart" ""' >> /etc/restartd.co
1515

1616
cd /etc/init.d
1717

18-
NODE_PATH=""
19-
ARCH=$(dpkg --print-architecture)
20-
if [ $ARCH = armhf ]; then
21-
NODE_PATH="\/usr\/share\/adafruit\/webide\/bin\/node_hf\/node"
22-
chmod +x "$WEBIDE_ROOT/bin/node_hf/node"
23-
else
24-
NODE_PATH="\/usr\/share\/adafruit\/webide\/bin\/node_sf\/node"
25-
chmod +x "$WEBIDE_ROOT/bin/node_sf/node"
26-
fi
18+
NODE_PATH="/usr/local/bin/node"
2719
sed -i "s/NODE_PATH/$NODE_PATH/g" adafruit-webide.sh
2820

2921
update-rc.d adafruit-webide.sh defaults
@@ -58,4 +50,4 @@ echo "**** The Adafruit WebIDE is installed and running! ****"
5850
echo "**** Commands: sudo service adafruit-webide.sh {start,stop,restart} ****"
5951
echo "**** Navigate to http://$(hostname).local$PORT_USED to use the WebIDE"
6052

61-
exit 0
53+
exit 0

0 commit comments

Comments
 (0)