mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
parent
bad29ef90e
commit
4a9375dc99
2 changed files with 1 additions and 11 deletions
|
@ -88,15 +88,6 @@
|
||||||
"example": "supersecretpassword",
|
"example": "supersecretpassword",
|
||||||
"default": "supersecretpassword"
|
"default": "supersecretpassword"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "cpu",
|
|
||||||
"ask": {
|
|
||||||
"en": "Which CPU load limit percentage would you like your Duniter node don't exceed?",
|
|
||||||
"fr": "Quel pourcentage de charge processeur ne souhaitez-vous pas que le nœud Duniter dépasse ?"
|
|
||||||
},
|
|
||||||
"example": "50",
|
|
||||||
"default": "50"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "admin",
|
"name": "admin",
|
||||||
"type": "user",
|
"type": "user",
|
||||||
|
|
|
@ -13,7 +13,6 @@ sync_port=$YNH_APP_ARG_SYNC_PORT
|
||||||
salt=$YNH_APP_ARG_SALT
|
salt=$YNH_APP_ARG_SALT
|
||||||
password=$YNH_APP_ARG_PASSWORD
|
password=$YNH_APP_ARG_PASSWORD
|
||||||
admin=$YNH_APP_ARG_ADMIN
|
admin=$YNH_APP_ARG_ADMIN
|
||||||
cpu=`bc -l <<< "scale=2; $YNH_APP_ARG_CPU/100"`
|
|
||||||
version=$(cat ../conf/upstream_version)
|
version=$(cat ../conf/upstream_version)
|
||||||
|
|
||||||
# Source app helpers
|
# Source app helpers
|
||||||
|
@ -68,7 +67,7 @@ sudo dpkg -i /tmp/duniter-$version-linux-$arch.deb
|
||||||
|
|
||||||
# Configure Duniter node
|
# Configure Duniter node
|
||||||
sudo $app init --autoconf
|
sudo $app init --autoconf
|
||||||
sudo $app config --remoteh $domain --port $port --remotep $port --salt $salt --passwd $password --cpu $cpu
|
sudo $app config --remoteh $domain --port $port --remotep $port --salt $salt --passwd $password
|
||||||
|
|
||||||
# Synchronize Duniter node
|
# Synchronize Duniter 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."
|
||||||
|
|
Loading…
Add table
Reference in a new issue