diff --git a/README.md b/README.md index 380ba3c..94c267c 100644 --- a/README.md +++ b/README.md @@ -9,14 +9,14 @@ The package is **in progress**. Currently, it: -* Install uCoin and it's dependencies: node, npm +* Install uCoin 0.13.0 and it's dependencies: node, npm * Synchronize * Configure * Start Extra features: -* Proxy_pass to access to request though the path instead through the port cause it failed. +* Path access through a proxy_pass instead through the port cause it failed. * uCoin logs are displayed on the YunoHost admin interface ## Install diff --git a/manifest.json b/manifest.json index 72c65ba..ab6afb8 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "name": "uCoin", "id": "ucoin", "description": { - "en": "uCoin node which permits participate to chainblocks writing. Monetary system with universal dividend, libre money, relative theory of money. This package permit join an existing money.", + "en": "uCoin node which permits participate to blockchain writing. Monetary system with universal dividend, libre money, relative theory of money. This package permit join an existing money.", "fr": "Nœud uCoin qui permet de participer à l’écriture de blocs. Système monétaire à dividende universel, monnaie libre, thérorie relative de la monnaie. Ce paquet permet de rejoindre une monnaie déjà existante." }, "url": "http://ucoin.io/", @@ -12,7 +12,7 @@ "email": "moul@moul.re", "url": "https://moul.re/" }, - "multi_instance": "true", + "multi_instance": "false", "services": [ "nginx" ], diff --git a/scripts/install b/scripts/install index 1097b9d..c886a42 100755 --- a/scripts/install +++ b/scripts/install @@ -51,19 +51,12 @@ ucoind config --remoteh $domain --port $port --remotep $port --salt $salt --pass # Synchronize uCoin node echo "Synchronizing with $sync_node:$sync_port. It may take a while." ucoind sync $sync_node $sync_port --nointeractive -# > /dev/null 2>&1 # Launch uCoin node ucoind start -# Fix uCoin launching -$UCOIN_DIR/node/bin/npm cache clean -f -$UCOIN_DIR/node/bin/npm install -g n -ucoind delete -ucoind start - # Add uCoin service to the YunoHost monitoring -sudo yunohost service add $app --log /home/admin/.config/ucoin/ucoin_default/ucoin.log +sudo yunohost service add $app --log $UCOIN_DIR/ucoin/ucoin_default/ucoin.log # SSOwat Configuration sudo yunohost app setting $app skipped_uris -v "/" diff --git a/scripts/remove b/scripts/remove index cfee1be..fa3be19 100755 --- a/scripts/remove +++ b/scripts/remove @@ -9,8 +9,8 @@ port=$(sudo yunohost app setting $app port) # Remove uCoin UCOIN_DIR="/home/admin/.ucoin" [ -s "$UCOIN_DIR/ucoin.sh" ] && . "$UCOIN_DIR/ucoin.sh" -ucoind delete -rm -Rf /home/admin/.ucoin +ucoind stop +rm -Rf $UCOIN_DIR rm -Rf /home/admin/.config/ucoin/ # Remove uCoin service to YunoHost monitoring diff --git a/sources/install.sh b/sources/install.sh old mode 100755 new mode 100644 index ec151de..a2fa0b6 --- a/sources/install.sh +++ b/sources/install.sh @@ -11,7 +11,7 @@ if [ -z "$UCOIN_DIR" ]; then fi ucoin_latest_version() { - echo "v0.12.10" + echo "v0.13.0" } ucoin_repo_url() { @@ -155,7 +155,7 @@ install_ucoin_from_git() { fi # Download Nodejs - local NVER="0.12.7"; + local NVER="4.2.0"; local ARCH="86" local X64=`uname -a | grep "x86_64"` if [ ! -z "$X64" ]; then