forked from talaia-labs/rust-teos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use a non-docker-managed data directory
- Loading branch information
1 parent
f7d6bd5
commit d2b1f31
Showing
3 changed files
with
26 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
#!/bin/sh | ||
|
||
# Own the data directory | ||
sudo chown -R teos /home/teos/.teos | ||
|
||
# Allow the configuration file to be edited by anyone (so an outside users can edit it easily) | ||
chmod 666 /home/teos/.teos/teos.toml | ||
|
||
# Define the start command | ||
START_COMMAND="teosd" | ||
|
||
|
@@ -46,10 +52,6 @@ if [[ ! -z ${BTC_RPC_PORT} ]]; then | |
START_COMMAND="$START_COMMAND --btcrpcport $BTC_RPC_PORT" | ||
fi | ||
|
||
if [[ ! -z ${DATA_DIR} ]]; then | ||
START_COMMAND="$START_COMMAND --datadir $DATA_DIR" | ||
fi | ||
|
||
if [[ ! -z ${DEBUG} ]]; then | ||
START_COMMAND="$START_COMMAND --debug $DEBUG" | ||
fi | ||
|
@@ -66,6 +68,5 @@ if [[ ! -z ${FORCE_UPDATE} ]]; then | |
START_COMMAND="$START_COMMAND --forceupdate $FORCE_UPDATE" | ||
fi | ||
|
||
|
||
# Start the TEOS daemon | ||
$START_COMMAND | ||
This comment has been minimized.
Sorry, something went wrong.
mariocynicys
Author
Owner
|
This line isn't needed