Closed ronnylov closed 5 years ago
Here are the variables in the script
# Set defaults. Can be overriden by env variables
[ -z "$LTHNPREFIX" ] && LTHNPREFIX=/
[ -z "$PROVIDERID" ] && PROVIDERID=""
[ -z "$PROVIDERKEY" ] && PROVIDERKEY=""
[ -z "$DAEMON_HOST" ] && DAEMON_HOST="sync.lethean.io"
[ -z "$WALLETFILE" ] && WALLETFILE="/var/lib/lthn/wallet"
[ -z "$WALLETPASS" ] && WALLETPASS="walletpass"
[ -z "$CAPASS" ] && CAPASS=1234
[ -z "$CACN" ] && CACN=ITNSFakeNode
[ -z "$ENDPOINT" ] && ENDPOINT="1.2.3.4"
[ -z "$PORT" ] && PORT="8080"
[ -z "$PROVTYPE" ] && PROVTYPE="residential"
Here is content of /etc/default/lethean-wallet-vpn-rpc
LETHEANWALLET=/var/lib/lthn/wallet
RPCPORT=13660
# To redirect to global daemon
#DAEMONHOST=sync.lethean.io
DAEMONHOST=localhost
RPCLOGIN="user:pass"
WALLETPASS="walletpass"
DAEMON_HOST, WALLETFILE and WALLETPASS in the script could be used to write contents into /etc/default/lethean-wallet-vpn-rpc
Got error with easy deploy run with sudo: "/usr/bin/custom-lthn-easy-deploy-node.sh: line 56: /etc/default/lethean-wallet-vpn-rpc: Permission denied" I think changing this file needs root permissions. I have not looked at script.
Tested debian packages lethean-vpn 3.1.0-8 together with lethean-wallet-vpn-rpc 3.1.0-3. I confirm that the script now do automatic setup of /etc/default/lethean-wallet-vpn-rpc.
However lethean-wallet-vpn-rpc.service is not started and enabled by the deploy script. I started and enabled the service manually and it worked without problems.
It works with debian packages lethean-vpn 3.1.0-14 together with lethean-wallet-vpn-rpc 3.1.0-4 too I am closing this issue.
I tried using this script when installing new exit node when using debian packages: https://github.com/LetheanMovement/lethean-vpn/blob/develop/debian/lthn-easy-deploy-node.sh
The steps I did are described here: https://github.com/ronnylov/lethean-vpn/wiki/Full-Lethean-exit-node-install-guide
I got error when trying to start lethean-wallet-vpn-rpc.service because the settings of variables did not also change the content of /etc/default/lethean-wallet-vpn-rpc
If user decides to change contents of variables then these changes should also be done by the script in /etc/default/lethean-wallet-vpn-rpc to get an easier installation procedure. As it is now the user must edit this file manually.