mirror of
https://github.com/YunoHost-Apps/duniter_ynh.git
synced 2024-09-03 18:26:35 +02:00
[enh] configure Duniter at install and upgrade steps.
This commit is contained in:
parent
b32855f1a4
commit
62336dd1cd
3 changed files with 8 additions and 5 deletions
|
@ -19,6 +19,12 @@ sudo dpkg -i $deb_path > /dev/null
|
||||||
sudo rm -f $deb_path
|
sudo rm -f $deb_path
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CONFIGURE_DUNITER () {
|
||||||
|
sudo duniter config --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 80 --noupnp
|
||||||
|
sudo duniter config --addep "BMAS $domain 443"
|
||||||
|
sudo duniter config --ws2p-host 127.0.0.1 --ws2p-port 20901 --ws2p-remote-host $domain --ws2p-remote-port 443 --ws2p-noupnp
|
||||||
|
}
|
||||||
|
|
||||||
CONFIG_SSOWAT () {
|
CONFIG_SSOWAT () {
|
||||||
# Add admin to the allowed users
|
# Add admin to the allowed users
|
||||||
sudo yunohost app addaccess $app -u $admin
|
sudo yunohost app addaccess $app -u $admin
|
||||||
|
|
|
@ -45,11 +45,7 @@ ynh_app_setting_set "$app" admin "$admin"
|
||||||
sudo yunohost firewall allow TCP $port > /dev/null 2>&1
|
sudo yunohost firewall allow TCP $port > /dev/null 2>&1
|
||||||
|
|
||||||
INSTALL_DUNITER_DEBIAN_PACKAGE
|
INSTALL_DUNITER_DEBIAN_PACKAGE
|
||||||
|
CONFIGURE_DUNITER
|
||||||
# Configure Duniter node
|
|
||||||
sudo duniter config --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 80 --noupnp
|
|
||||||
sudo duniter config --addep "BMAS $domain 443"
|
|
||||||
sudo duniter config --ws2p-host 127.0.0.1 --ws2p-port 20901 --ws2p-remote-host $domain --ws2p-remote-port 443 --ws2p-noupnp
|
|
||||||
|
|
||||||
# Reset Duniter node's existing data (blockchain, not conf)
|
# Reset Duniter node's existing data (blockchain, not conf)
|
||||||
sudo duniter reset data > /dev/null
|
sudo duniter reset data > /dev/null
|
||||||
|
|
|
@ -16,6 +16,7 @@ admin=$(ynh_app_setting_get "$app" admin)
|
||||||
|
|
||||||
REMOVE_DUNITER
|
REMOVE_DUNITER
|
||||||
INSTALL_DUNITER_DEBIAN_PACKAGE
|
INSTALL_DUNITER_DEBIAN_PACKAGE
|
||||||
|
CONFIGURE_DUNITER
|
||||||
|
|
||||||
# Start duniter daemon
|
# Start duniter daemon
|
||||||
sudo duniter webstart
|
sudo duniter webstart
|
||||||
|
|
Loading…
Add table
Reference in a new issue