mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] install script: uCoin –> Duniter.
This commit is contained in:
parent
3b96cef82b
commit
e0ab29c920
1 changed files with 12 additions and 13 deletions
|
@ -3,7 +3,7 @@
|
||||||
#set -e
|
#set -e
|
||||||
|
|
||||||
# Retrieve arguments
|
# Retrieve arguments
|
||||||
app=ucoin
|
app=duniter
|
||||||
domain=$1
|
domain=$1
|
||||||
path=$2
|
path=$2
|
||||||
port=$3
|
port=$3
|
||||||
|
@ -39,24 +39,23 @@ sudo yunohost firewall allow TCP $port > /dev/null 2>&1
|
||||||
# Store config on YunoHost instance
|
# Store config on YunoHost instance
|
||||||
sudo yunohost app setting $app port -v $port
|
sudo yunohost app setting $app port -v $port
|
||||||
|
|
||||||
# Install uCoin
|
# Install Duniter
|
||||||
bash ../sources/install.sh
|
bash ../sources/install.sh
|
||||||
UCOIN_DIR="/home/admin/.ucoin"
|
source ~/.bashrc
|
||||||
[ -s "$UCOIN_DIR/ucoin.sh" ] && . "$UCOIN_DIR/ucoin.sh"
|
|
||||||
|
|
||||||
# Configure uCoin node
|
# Configure Duniter node
|
||||||
ucoind init --autoconf
|
$app init --autoconf
|
||||||
ucoind config --remoteh $domain --port $port --remotep $port --salt $salt --passwd $password --cpu $cpu
|
$app config --remoteh $domain --port $port --remotep $port --salt $salt --passwd $password --cpu $cpu
|
||||||
|
|
||||||
# Synchronize uCoin 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."
|
||||||
ucoind sync $sync_node $sync_port --nointeractive
|
$app sync $sync_node $sync_port --nointeractive
|
||||||
|
|
||||||
# Launch uCoin node
|
# Launch Duniter node
|
||||||
ucoind start
|
$app start
|
||||||
|
|
||||||
# Add uCoin service to the YunoHost monitoring
|
# Add Duniter 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 /home/admin/.config/$app/"$app"_default/"$app".log
|
||||||
|
|
||||||
# SSOwat Configuration
|
# SSOwat Configuration
|
||||||
sudo yunohost app setting $app skipped_uris -v "/"
|
sudo yunohost app setting $app skipped_uris -v "/"
|
||||||
|
|
Loading…
Reference in a new issue