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**.
|
The package is **in progress**.
|
||||||
Currently, it:
|
Currently, it:
|
||||||
|
|
||||||
* Install uCoin and it's dependencies: node, npm
|
* Install uCoin 0.13.0 and it's dependencies: node, npm
|
||||||
* Synchronize
|
* Synchronize
|
||||||
* Configure
|
* Configure
|
||||||
* Start
|
* Start
|
||||||
|
|
||||||
Extra features:
|
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
|
* uCoin logs are displayed on the YunoHost admin interface
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"name": "uCoin",
|
"name": "uCoin",
|
||||||
"id": "ucoin",
|
"id": "ucoin",
|
||||||
"description": {
|
"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."
|
"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/",
|
"url": "http://ucoin.io/",
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
"email": "moul@moul.re",
|
"email": "moul@moul.re",
|
||||||
"url": "https://moul.re/"
|
"url": "https://moul.re/"
|
||||||
},
|
},
|
||||||
"multi_instance": "true",
|
"multi_instance": "false",
|
||||||
"services": [
|
"services": [
|
||||||
"nginx"
|
"nginx"
|
||||||
],
|
],
|
||||||
|
|
|
@ -51,19 +51,12 @@ ucoind config --remoteh $domain --port $port --remotep $port --salt $salt --pass
|
||||||
# Synchronize uCoin node
|
# Synchronize uCoin node
|
||||||
echo "Synchronizing with $sync_node:$sync_port. It may take a while."
|
echo "Synchronizing with $sync_node:$sync_port. It may take a while."
|
||||||
ucoind sync $sync_node $sync_port --nointeractive
|
ucoind sync $sync_node $sync_port --nointeractive
|
||||||
# > /dev/null 2>&1
|
|
||||||
|
|
||||||
# Launch uCoin node
|
# Launch uCoin node
|
||||||
ucoind start
|
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
|
# 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
|
# SSOwat Configuration
|
||||||
sudo yunohost app setting $app skipped_uris -v "/"
|
sudo yunohost app setting $app skipped_uris -v "/"
|
||||||
|
|
|
@ -9,8 +9,8 @@ port=$(sudo yunohost app setting $app port)
|
||||||
# Remove uCoin
|
# Remove uCoin
|
||||||
UCOIN_DIR="/home/admin/.ucoin"
|
UCOIN_DIR="/home/admin/.ucoin"
|
||||||
[ -s "$UCOIN_DIR/ucoin.sh" ] && . "$UCOIN_DIR/ucoin.sh"
|
[ -s "$UCOIN_DIR/ucoin.sh" ] && . "$UCOIN_DIR/ucoin.sh"
|
||||||
ucoind delete
|
ucoind stop
|
||||||
rm -Rf /home/admin/.ucoin
|
rm -Rf $UCOIN_DIR
|
||||||
rm -Rf /home/admin/.config/ucoin/
|
rm -Rf /home/admin/.config/ucoin/
|
||||||
|
|
||||||
# Remove uCoin service to YunoHost monitoring
|
# 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
|
fi
|
||||||
|
|
||||||
ucoin_latest_version() {
|
ucoin_latest_version() {
|
||||||
echo "v0.12.10"
|
echo "v0.13.0"
|
||||||
}
|
}
|
||||||
|
|
||||||
ucoin_repo_url() {
|
ucoin_repo_url() {
|
||||||
|
@ -155,7 +155,7 @@ install_ucoin_from_git() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Download Nodejs
|
# Download Nodejs
|
||||||
local NVER="0.12.7";
|
local NVER="4.2.0";
|
||||||
local ARCH="86"
|
local ARCH="86"
|
||||||
local X64=`uname -a | grep "x86_64"`
|
local X64=`uname -a | grep "x86_64"`
|
||||||
if [ ! -z "$X64" ]; then
|
if [ ! -z "$X64" ]; then
|
||||||
|
|
Loading…
Reference in a new issue