Commit fd4b956c authored by Cédric Moreau's avatar Cédric Moreau

Fix #444 "Node.js missing" message with debian package

parent 874946d8
......@@ -20,6 +20,7 @@ fi
if [[ -d $DUN_ROOT/node ]]; then
chmod 755 $DUN_ROOT/sources/bin/ucoind
sed -i "s/usr\/bin\/env node/opt\/duniter\/node\/bin\/node/g" $DUN_ROOT/sources/bin/ucoind
sed -i "s/DEB_PACKAGING=.*/DEB_PACKAGING=true/g" $DUN_ROOT/sources/duniter.sh
fi
# Else will execute with environment node
......
......@@ -6,6 +6,12 @@
# Wraps bin/ucoind.js that is called with Node.js
#
DEB_PACKAGING=false
if [[ $DEB_PACKAGING ]]; then
DUNITER_DIR=/opt/duniter/sources/
fi
duniter() {
local NODE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment