From 5d83c9c7f7c54ba53bcfe1bfb4e412b0870f01fb Mon Sep 17 00:00:00 2001 From: Moul Date: Thu, 5 May 2022 19:25:36 +0200 Subject: [PATCH] [fix] Fix home directory specification when applying config MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I thought specifying 'duniter'’s $HOME to /home/yunohost.app/duniter to be enough The config actually went into: /home/yunohost.app/duniter/.config/duniter_default/ Specify '--home $datadir', so the configuration goes into /home/yunohost.app/duniter/duniter_default/ Update documentation accordingly with \$HOME to make the already a long and relative complex command shorter --- README.md | 4 ++-- README_fr.md | 4 ++-- doc/DISCLAIMER.md | 4 ++-- scripts/_common.sh | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index bd15280..2139078 100644 --- a/README.md +++ b/README.md @@ -28,12 +28,12 @@ Crypto-currency software to operate Ğ1 libre currency ## Disclaimers / important information ## Configurations -- In order to compute blocks you will have to set your member credentials with `sudo su - duniter -c "duniter wizard key"` or from the webadmin. +- In order to compute blocks you will have to set your member credentials with `sudo su - duniter -c "duniter --home \$HOME wizard key"` or from the webadmin. - BMA, the client API is accessible from `https://duniter.domain.tld/bma/` if enabled . The last `/` is necessary. It can be used in Cesium and Silkaj. - The web administration interface is accessible via `https://duniter.domain.tld/` and is only accessible to the administrator specified at the installation. - **Warning**: In case the Webui tells you your network configuration is wrong and proposes to correct it, do not apply it, otherwise it breaks the specific configuration made for this package. You can manually reset the configuration with following command: -`sudo su - duniter -c "duniter config --bma --ipv4 127.0.0.1 --port CHOSEN_PORT --remoteh YOUR_DOMAIN --remotep 443 --noupnp"` +`sudo su - duniter -c "duniter --home \$HOME config --bma --ipv4 127.0.0.1 --port CHOSEN_PORT --remoteh YOUR_DOMAIN --remotep 443 --noupnp"` ## Cesium Cesium is a wallet webapp. You can install it with: diff --git a/README_fr.md b/README_fr.md index 604a2f0..10572ba 100644 --- a/README_fr.md +++ b/README_fr.md @@ -24,12 +24,12 @@ Logiciel de cryptomonnaie pour faire fonctionner la monnaie libre Ğ1 ## Avertissements / informations importantes ## Configurations -- In order to compute blocks you will have to set your member credentials with `sudo su - duniter -c "duniter wizard key"` or from the webadmin. +- In order to compute blocks you will have to set your member credentials with `sudo su - duniter -c "duniter --home \$HOME wizard key"` or from the webadmin. - BMA, the client API is accessible from `https://duniter.domain.tld/bma/` if enabled . The last `/` is necessary. It can be used in Cesium and Silkaj. - The web administration interface is accessible via `https://duniter.domain.tld/` and is only accessible to the administrator specified at the installation. - **Warning**: In case the Webui tells you your network configuration is wrong and proposes to correct it, do not apply it, otherwise it breaks the specific configuration made for this package. You can manually reset the configuration with following command: -`sudo su - duniter -c "duniter config --bma --ipv4 127.0.0.1 --port CHOSEN_PORT --remoteh YOUR_DOMAIN --remotep 443 --noupnp"` +`sudo su - duniter -c "duniter --home \$HOME config --bma --ipv4 127.0.0.1 --port CHOSEN_PORT --remoteh YOUR_DOMAIN --remotep 443 --noupnp"` ## Cesium Cesium is a wallet webapp. You can install it with: diff --git a/doc/DISCLAIMER.md b/doc/DISCLAIMER.md index 4766bb5..c327735 100644 --- a/doc/DISCLAIMER.md +++ b/doc/DISCLAIMER.md @@ -1,10 +1,10 @@ ## Configurations -- In order to compute blocks you will have to set your member credentials with `sudo su - duniter -c "duniter wizard key"` or from the webadmin. +- In order to compute blocks you will have to set your member credentials with `sudo su - duniter -c "duniter --home \$HOME wizard key"` or from the webadmin. - BMA, the client API is accessible from `https://duniter.domain.tld/bma/` if enabled . The last `/` is necessary. It can be used in Cesium and Silkaj. - The web administration interface is accessible via `https://duniter.domain.tld/` and is only accessible to the administrator specified at the installation. - **Warning**: In case the Webui tells you your network configuration is wrong and proposes to correct it, do not apply it, otherwise it breaks the specific configuration made for this package. You can manually reset the configuration with following command: -`sudo su - duniter -c "duniter config --bma --ipv4 127.0.0.1 --port CHOSEN_PORT --remoteh YOUR_DOMAIN --remotep 443 --noupnp"` +`sudo su - duniter -c "duniter --home \$HOME config --bma --ipv4 127.0.0.1 --port CHOSEN_PORT --remoteh YOUR_DOMAIN --remotep 443 --noupnp"` ## Cesium Cesium is a wallet webapp. You can install it with: diff --git a/scripts/_common.sh b/scripts/_common.sh index fa6ab25..2eda4ed 100644 --- a/scripts/_common.sh +++ b/scripts/_common.sh @@ -11,8 +11,8 @@ pkg_dependencies="deb1 deb2 php$YNH_DEFAULT_PHP_VERSION-deb1 php$YNH_DEFAULT_PHP # PERSONAL HELPERS #================================================= CONFIGURE_DUNITER() { - ynh_exec_as duniter duniter config --bma --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 443 --noupnp - ynh_exec_as duniter duniter config --ws2p-host 127.0.0.1 --ws2p-port 20901 --ws2p-remote-host $domain --ws2p-remote-port 443 --ws2p-remote-path "/ws2p" --ws2p-noupnp + ynh_exec_as duniter duniter --home $datadir config --bma --ipv4 127.0.0.1 --port $port --remoteh $domain --remotep 443 --noupnp + ynh_exec_as duniter duniter --home $datadir config --ws2p-host 127.0.0.1 --ws2p-port 20901 --ws2p-remote-host $domain --ws2p-remote-port 443 --ws2p-remote-path "/ws2p" --ws2p-noupnp }