mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
Updates.
This commit is contained in:
parent
0312ea326b
commit
30ab797b20
5 changed files with 9 additions and 16 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
],
|
||||
|
|
|
@ -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 "/"
|
||||
|
|
|
@ -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
|
||||
|
|
4
sources/install.sh
Executable file → Normal file
4
sources/install.sh
Executable file → Normal file
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue