Skip to content
Snippets Groups Projects
Commit 701c7017 authored by Moul's avatar Moul
Browse files

[enh] duniter.sh: node version, rm ucoin relics

- Duniter works with Nodejs v4 and v5, but not with v6.
- remove ucoin relics
parent 903a70d7
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
########################## ##########################
# UCOIN EXECUTABLE # DUNITER EXECUTABLE
# #
# Wraps bin/duniter.js that is called with Node.js # Wraps bin/duniter.js that is called with Node.js
# #
...@@ -35,14 +35,14 @@ duniter() { ...@@ -35,14 +35,14 @@ duniter() {
VERSION=`$NODE -v` VERSION=`$NODE -v`
if [[ $VERSION != v5* && $VERSION != v6* ]]; then if [[ $VERSION != v5* && $VERSION != v4* ]]; then
echo "$NODE v5 or v6 is required"; echo "$NODE v5 or v4 is required";
else else
case "$1" in case "$1" in
#--------------------------------- #---------------------------------
# UCOIN DAEMON MANAGEMENT # DUNITER DAEMON MANAGEMENT
#--------------------------------- #---------------------------------
webwait|webstart|webstop|webrestart|start|stop|restart) webwait|webstart|webstop|webrestart|start|stop|restart)
...@@ -59,7 +59,7 @@ duniter() { ...@@ -59,7 +59,7 @@ duniter() {
;; ;;
#--------------------------------- #---------------------------------
# UCOIN CLI COMMANDS # DUNITER CLI COMMANDS
#--------------------------------- #---------------------------------
*) *)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment